File tree Expand file tree Collapse file tree 6 files changed +11
-11
lines changed Expand file tree Collapse file tree 6 files changed +11
-11
lines changed Original file line number Diff line number Diff line change 214
214
215
215
case " $resolved " in
216
216
' ' )
217
- files=$( git diff-index --cached --name-only HEAD) || exit
217
+ files=$( git diff-index --cached --name-only HEAD -- ) || exit
218
218
if [ " $files " ]; then
219
219
echo " Dirty index: cannot apply patches (dirty: $files )" >&2
220
220
exit 1
348
348
case " $resolved$interactive " in
349
349
tt)
350
350
# This is used only for interactive view option.
351
- git diff-index -p --cached HEAD > " $dotest /patch"
351
+ git diff-index -p --cached HEAD -- > " $dotest /patch"
352
352
;;
353
353
esac
354
354
esac
409
409
# trust what the user has in the index file and the
410
410
# working tree.
411
411
resolved=
412
- git diff-index --quiet --cached HEAD && {
412
+ git diff-index --quiet --cached HEAD -- && {
413
413
echo " No changes - did you forget to use 'git add'?"
414
414
stop_here_user_resolve $this
415
415
}
431
431
then
432
432
# Applying the patch to an earlier tree and merging the
433
433
# result may have produced the same tree as ours.
434
- git diff-index --quiet --cached HEAD && {
434
+ git diff-index --quiet --cached HEAD -- && {
435
435
echo No changes -- Patch already applied.
436
436
go_next
437
437
continue
Original file line number Diff line number Diff line change @@ -95,7 +95,7 @@ USAGE="[--env-filter <command>] [--tree-filter <command>] \
95
95
. git-sh-setup
96
96
97
97
git diff-files --quiet &&
98
- git diff-index --cached --quiet HEAD ||
98
+ git diff-index --cached --quiet HEAD -- ||
99
99
die " Cannot rewrite branch(es) with a dirty working directory."
100
100
101
101
tempdir=.git-rewrite
Original file line number Diff line number Diff line change 9
9
# because the current index is what we will be committing as the
10
10
# merge result.
11
11
12
- git diff-index --quiet --cached HEAD || exit 2
12
+ git diff-index --quiet --cached HEAD -- || exit 2
13
13
14
14
exit 0
Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ require_clean_work_tree () {
52
52
git rev-parse --verify HEAD > /dev/null &&
53
53
git update-index --refresh &&
54
54
git diff-files --quiet &&
55
- git diff-index --cached --quiet HEAD ||
55
+ git diff-index --cached --quiet HEAD -- ||
56
56
die " Working tree is dirty"
57
57
}
58
58
331
331
git rev-parse --verify HEAD > /dev/null &&
332
332
git update-index --refresh &&
333
333
git diff-files --quiet &&
334
- ! git diff-index --cached --quiet HEAD &&
334
+ ! git diff-index --cached --quiet HEAD -- &&
335
335
. " $DOTEST " /author-script &&
336
336
export GIT_AUTHOR_NAME GIT_AUTHOR_NAME GIT_AUTHOR_DATE &&
337
337
git commit -F " $DOTEST " /message -e
Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ continue_merge () {
60
60
fi
61
61
62
62
cmt=` cat " $dotest /current" `
63
- if ! git diff-index --quiet HEAD
63
+ if ! git diff-index --quiet HEAD --
64
64
then
65
65
if ! git-commit -C " $cmt "
66
66
then
253
253
254
254
# The tree must be really really clean.
255
255
git update-index --refresh || exit
256
- diff=$( git diff-index --cached --name-status -r HEAD)
256
+ diff=$( git diff-index --cached --name-status -r HEAD -- )
257
257
case " $diff " in
258
258
?* ) echo " cannot rebase: your index is not up-to-date"
259
259
echo " $diff "
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ trap 'rm -f "$TMP-*"' 0
14
14
ref_stash=refs/stash
15
15
16
16
no_changes () {
17
- git diff-index --quiet --cached HEAD &&
17
+ git diff-index --quiet --cached HEAD -- &&
18
18
git diff-files --quiet
19
19
}
20
20
You can’t perform that action at this time.
0 commit comments