@@ -60,17 +60,17 @@ fall_back_3way () {
6060 mkdir " $dotest /patch-merge-tmp-dir"
6161
6262 # First see if the patch records the index info that we can use.
63- git- apply -z --index-info " $dotest /patch" \
63+ git apply -z --index-info " $dotest /patch" \
6464 > " $dotest /patch-merge-index-info" &&
6565 GIT_INDEX_FILE=" $dotest /patch-merge-tmp-index" \
66- git- update-index -z --index-info < " $dotest /patch-merge-index-info" &&
66+ git update-index -z --index-info < " $dotest /patch-merge-index-info" &&
6767 GIT_INDEX_FILE=" $dotest /patch-merge-tmp-index" \
68- git- write-tree > " $dotest /patch-merge-base+" ||
68+ git write-tree > " $dotest /patch-merge-base+" ||
6969 cannot_fallback " Repository lacks necessary blobs to fall back on 3-way merge."
7070
7171 echo Using index info to reconstruct a base tree...
7272 if GIT_INDEX_FILE=" $dotest /patch-merge-tmp-index" \
73- git- apply $binary --cached < " $dotest /patch"
73+ git apply $binary --cached < " $dotest /patch"
7474 then
7575 mv " $dotest /patch-merge-base+" " $dotest /patch-merge-base"
7676 mv " $dotest /patch-merge-tmp-index" " $dotest /patch-merge-index"
@@ -80,7 +80,7 @@ It does not apply to blobs recorded in its index."
8080 fi
8181
8282 test -f " $dotest /patch-merge-index" &&
83- his_tree=$( GIT_INDEX_FILE=" $dotest /patch-merge-index" git- write-tree) &&
83+ his_tree=$( GIT_INDEX_FILE=" $dotest /patch-merge-index" git write-tree) &&
8484 orig_tree=$( cat " $dotest /patch-merge-base" ) &&
8585 rm -fr " $dotest " /patch-merge-* || exit 1
8686
@@ -97,7 +97,7 @@ It does not apply to blobs recorded in its index."
9797 git-merge-recursive $orig_tree -- HEAD $his_tree || {
9898 if test -d " $GIT_DIR /rr-cache"
9999 then
100- git- rerere
100+ git rerere
101101 fi
102102 echo Failed to merge in the changes.
103103 exit 1
198198 # Start afresh.
199199 mkdir -p " $dotest " || exit
200200
201- git- mailsplit -d" $prec " -o" $dotest " -b -- " $@ " > " $dotest /last" || {
201+ git mailsplit -d" $prec " -o" $dotest " -b -- " $@ " > " $dotest /last" || {
202202 rm -fr " $dotest "
203203 exit 1
204204 }
216216
217217case " $resolved " in
218218' ' )
219- files=$( git- diff-index --cached --name-only HEAD) || exit
219+ files=$( git diff-index --cached --name-only HEAD) || exit
220220 if [ " $files " ]; then
221221 echo " Dirty index: cannot apply patches (dirty: $files )" >&2
222222 exit 1
@@ -254,7 +254,7 @@ if test "$skip" = t
254254then
255255 if test -d " $GIT_DIR /rr-cache"
256256 then
257- git- rerere clear
257+ git rerere clear
258258 fi
259259 this=` expr " $this " + 1`
260260 resume=
287287 # by the user, or the user can tell us to do so by --resolved flag.
288288 case " $resume " in
289289 ' ' )
290- git- mailinfo $keep $utf8 " $dotest /msg" " $dotest /patch" \
290+ git mailinfo $keep $utf8 " $dotest /msg" " $dotest /patch" \
291291 < " $dotest /$msgnum " > " $dotest /info" ||
292292 stop_here $this
293293 test -s $dotest /patch || {
294294 echo " Patch is empty. Was it split wrong?"
295295 stop_here $this
296296 }
297- git- stripspace < " $dotest /msg" > " $dotest /msg-clean"
297+ git stripspace < " $dotest /msg" > " $dotest /msg-clean"
298298 ;;
299299 esac
300300
347347 case " $resolved$interactive " in
348348 tt)
349349 # This is used only for interactive view option.
350- git- diff-index -p --cached HEAD > " $dotest /patch"
350+ git diff-index -p --cached HEAD > " $dotest /patch"
351351 ;;
352352 esac
353353 esac
399399
400400 case " $resolved " in
401401 ' ' )
402- git- apply $git_apply_opt $binary --index " $dotest /patch"
402+ git apply $git_apply_opt $binary --index " $dotest /patch"
403403 apply_status=$?
404404 ;;
405405 t)
408408 # trust what the user has in the index file and the
409409 # working tree.
410410 resolved=
411- git- diff-index --quiet --cached HEAD && {
411+ git diff-index --quiet --cached HEAD && {
412412 echo " No changes - did you forget to use 'git add'?"
413413 stop_here_user_resolve $this
414414 }
415- unmerged=$( git- ls-files -u)
415+ unmerged=$( git ls-files -u)
416416 if test -n " $unmerged "
417417 then
418418 echo " You still have unmerged paths in your index"
433433 then
434434 # Applying the patch to an earlier tree and merging the
435435 # result may have produced the same tree as ours.
436- git- diff-index --quiet --cached HEAD && {
436+ git diff-index --quiet --cached HEAD && {
437437 echo No changes -- Patch already applied.
438438 go_next
439439 continue
453453 " $GIT_DIR " /hooks/pre-applypatch || stop_here $this
454454 fi
455455
456- tree=$( git- write-tree) &&
456+ tree=$( git write-tree) &&
457457 echo Wrote tree $tree &&
458- parent=$( git- rev-parse --verify HEAD) &&
459- commit=$( git- commit-tree $tree -p $parent < " $dotest /final-commit" ) &&
458+ parent=$( git rev-parse --verify HEAD) &&
459+ commit=$( git commit-tree $tree -p $parent < " $dotest /final-commit" ) &&
460460 echo Committed: $commit &&
461- git- update-ref -m " $GIT_REFLOG_ACTION : $SUBJECT " HEAD $commit $parent ||
461+ git update-ref -m " $GIT_REFLOG_ACTION : $SUBJECT " HEAD $commit $parent ||
462462 stop_here $this
463463
464464 if test -x " $GIT_DIR " /hooks/post-applypatch
0 commit comments