]> git.ipfire.org Git - thirdparty/git.git/commit - merge-recursive.c
merge-recursive: Improve handling of rename target vs. directory addition
authorElijah Newren <newren@gmail.com>
Fri, 12 Aug 2011 05:20:06 +0000 (23:20 -0600)
committerJunio C Hamano <gitster@pobox.com>
Sun, 14 Aug 2011 21:19:37 +0000 (14:19 -0700)
commit51931bf08e7de1f597d36bc2fd38b5310b6da7dd
tree1b3bc720ea90fe1bbc4609de02c680f02a0134d9
parent7769a75e96f998b2f1ef51e8a2e88058f56fa519
merge-recursive: Improve handling of rename target vs. directory addition

When dealing with file merging and renames and D/F conflicts and possible
criss-cross merges (how's that for a corner case?), we did not do a
thorough job ensuring the index and working directory had the correct
contents.   Fix the logic in merge_content() to handle this.  Also,
correct some erroneous tests in t6022 that were expecting the wrong number
of unmerged index entries.  These changes fix one of the tests in t6042
(and almost fix another one from t6042 as well).

Signed-off-by: Elijah Newren <newren@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
merge-recursive.c
t/t6022-merge-rename.sh
t/t6042-merge-rename-corner-cases.sh