abcxyz / abc

Apache License 2.0
12 stars 3 forks source link

Rejected patch files indicate a merge conflict #563

Closed drevell closed 6 months ago

drevell commented 6 months ago

Previously, we only detected .abcmerge files as being indicators of a merge conflict. Now that we've implemented patch reversal for included-from-destination files, we also might have .rej files hanging around from a merge conflict.

Also: use .patch.rej instead of just .rej for rejected patch files. This makes it less likely that someone just happens to have a file with a coincidentally matching file extension

Also: add a unit test for detectUnmergedConflicts().