]> git.ipfire.org Git - thirdparty/git.git/commit - merge-recursive.c
merge-recursive: improve rename/rename(1to2)/add[/add] handling
authorElijah Newren <newren@gmail.com>
Thu, 8 Nov 2018 04:40:29 +0000 (20:40 -0800)
committerJunio C Hamano <gitster@pobox.com>
Thu, 8 Nov 2018 05:23:53 +0000 (14:23 +0900)
commit48c9cb9d6d058bcf18e931a1ed0d88792bb506c9
tree977129baf18dc58d9a54c4b3d5cb4d21691851d5
parentdcf2815098589b1fa0a01e7a8459c213581d4412
merge-recursive: improve rename/rename(1to2)/add[/add] handling

When we have a rename/rename(1to2) conflict, each of the renames can
collide with a file addition.  Each of these rename/add conflicts suffered
from the same kinds of problems that normal rename/add suffered from.
Make the code use handle_file_conflicts() as well so that we get all the
same fixes and consistent behavior between the different conflict types.

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