summaryrefslogtreecommitdiff
path: root/git-merge-one-file.sh
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2016-02-26 13:37:14 -0800
committerJunio C Hamano <gitster@pobox.com>2016-02-26 13:37:14 -0800
commit18b26b18c50637eaa8fb1ae5f42fd94c8ac99507 (patch)
treead35f5f2b5bf669f4d81798e107b8ded40393fdb /git-merge-one-file.sh
parentdede29612a723a7da9f489fecbdf02500a018430 (diff)
parent907681e940d095a0ab96756a8cddfd4f63cd71e1 (diff)
downloadgit-18b26b18c50637eaa8fb1ae5f42fd94c8ac99507.tar.gz
Merge branch 'jk/no-diff-emit-common'
"git merge-tree" used to mishandle "both sides added" conflict with its own "create a fake ancestor file that has the common parts of what both sides have added and do a 3-way merge" logic; this has been updated to use the usual "3-way merge with an empty blob as the fake common ancestor file" approach used in the rest of the system. * jk/no-diff-emit-common: xdiff: drop XDL_EMIT_COMMON merge-tree: drop generate_common strategy merge-one-file: use empty blob for add/add base
Diffstat (limited to 'git-merge-one-file.sh')
-rwxr-xr-xgit-merge-one-file.sh3
1 files changed, 1 insertions, 2 deletions
diff --git a/git-merge-one-file.sh b/git-merge-one-file.sh
index cdc02af517..424b034e34 100755
--- a/git-merge-one-file.sh
+++ b/git-merge-one-file.sh
@@ -120,8 +120,7 @@ case "${1:-.}${2:-.}${3:-.}" in
case "$1" in
'')
echo "Added $4 in both, but differently."
- orig=$(git-unpack-file $2)
- create_virtual_base "$orig" "$src2"
+ orig=$(git-unpack-file e69de29bb2d1d6434b8b29ae775ad8c2e48c5391)
;;
*)
echo "Auto-merging $4"