]> git.ipfire.org Git - thirdparty/git.git/commit - merge-ort.c
merge-ort: let renormalization change modify/delete into clean delete
authorElijah Newren <newren@gmail.com>
Sat, 20 Mar 2021 00:03:47 +0000 (00:03 +0000)
committerJunio C Hamano <gitster@pobox.com>
Sat, 20 Mar 2021 19:35:40 +0000 (12:35 -0700)
commit3860220bfa594a56daa801aaedbdf8ac75b62bb6
treed241fa1cdb25c0d22e3f56b5b6ec4acae6efa20b
parent1218b3ab86ddeea7c10ea3da0a1cdd5c026d1252
merge-ort: let renormalization change modify/delete into clean delete

When we have a modify/delete conflict, but the only change to the
modification is e.g. change of line endings, then if renormalization is
requested then we should be able to recognize such a case as a
not-modified/delete and resolve the conflict automatically.

This fixes t6418.10 under GIT_TEST_MERGE_ALGORITHM=ort.

Signed-off-by: Elijah Newren <newren@gmail.com>
Reviewed-by: Derrick Stolee <dstolee@microsoft.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
merge-ort.c