diff options
author | Junio C Hamano <gitster@pobox.com> | 2007-09-23 21:16:33 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2007-09-23 21:16:33 -0700 |
commit | 52d5bc9a161f839b78ec06c25736d09703fda802 (patch) | |
tree | 8ef92ac1a031de4929da08ce29cc878d6525be31 /git-am.sh | |
parent | Merge branch 'maint' (diff) | |
parent | apply: get rid of --index-info in favor of --build-fake-ancestor (diff) | |
download | tgif-52d5bc9a161f839b78ec06c25736d09703fda802.tar.xz |
Merge branch 'js/apply-build-ancestor'
* js/apply-build-ancestor:
apply: get rid of --index-info in favor of --build-fake-ancestor
Diffstat (limited to 'git-am.sh')
-rwxr-xr-x | git-am.sh | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -62,10 +62,8 @@ fall_back_3way () { mkdir "$dotest/patch-merge-tmp-dir" # First see if the patch records the index info that we can use. - git apply -z --index-info "$dotest/patch" \ - >"$dotest/patch-merge-index-info" && - GIT_INDEX_FILE="$dotest/patch-merge-tmp-index" \ - git update-index -z --index-info <"$dotest/patch-merge-index-info" && + git apply --build-fake-ancestor "$dotest/patch-merge-tmp-index" \ + "$dotest/patch" && GIT_INDEX_FILE="$dotest/patch-merge-tmp-index" \ git write-tree >"$dotest/patch-merge-base+" || cannot_fallback "Repository lacks necessary blobs to fall back on 3-way merge." |