merge-ort: handle D/F conflict where directory disappears due to merge
authorElijah Newren <redacted>
Fri, 1 Jan 2021 02:34:39 +0000 (02:34 +0000)
committerJunio C Hamano <redacted>
Mon, 4 Jan 2021 18:40:45 +0000 (10:40 -0800)
commit0ccfa4e5d8489abe7c5d3fe29b68e4fe0cae6fe1
tree7ff5c7ba2b9910609f1ed191449fe75dcb7b4204
parentc5a6f65527aa3b6f5d7cf25437a88d8727ab0646
merge-ort: handle D/F conflict where directory disappears due to merge

When one side has a directory at a given path and the other side of
history has a file at the path, but the merge resolves the directory
away (e.g. because no path within that directory was modified and the
other side deleted it, or because renaming moved all the files
elsewhere), then we don't actually have a conflict anymore.  We just
need to clear away any information related to the relevant directory,
and then the subsequent process_entry() handling can handle the given
path.

Signed-off-by: Elijah Newren <redacted>
Signed-off-by: Junio C Hamano <redacted>
merge-ort.c
git clone https://git.99rst.org/PROJECT