]> git.ipfire.org Git - thirdparty/git.git/commit
t6422, t6426: be more flexible for add/add conflicts involving renames
authorElijah Newren <newren@gmail.com>
Mon, 10 Aug 2020 22:29:17 +0000 (22:29 +0000)
committerJunio C Hamano <gitster@pobox.com>
Mon, 10 Aug 2020 22:59:01 +0000 (15:59 -0700)
commit2a7c16c9802b25de3497f60b2f3776d1a02477bb
tree74fbe7612b152c8235e45602cf68b8d8a0f4cd85
parent1cb588775f3b5fef9c10b1f9b580521007b390ea
t6422, t6426: be more flexible for add/add conflicts involving renames

merge-recursive treats an add/add conflict where one of the adds came
from a rename as a separate 'rename/add' type of conflict.  However, if
there is not content conflict after the content merge(s), then the file
is not considered to be conflicted.  That suggests the conflict type is
really just add/add.  Other merge engines might choose to print messages
to the console that just refer to these as add/add conflicts; accept
both types of output.

Note: it could help to notify users if the three-way content merge of
the rename had content conflicts, because when we then go to two-way
merge THAT with the conflicting add we can get nested conflict markers.
merge-recursive, unfortunately, doesn't do that, but other merge engines
could.

Signed-off-by: Elijah Newren <newren@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t6422-merge-rename-corner-cases.sh
t/t6426-merge-skip-unneeded-updates.sh