HomeFreeBSD

diff3: make the diff3 -E -m and diff3 -m behaviour match gnu diff3

Description

diff3: make the diff3 -E -m and diff3 -m behaviour match gnu diff3

In gnu diff3 3 way merging files where the new file and the target are
already the same will die and show what has failed to be merged except
if -E is passed in argument, in this case it will finish the merge.

This difference in behaviour was breaking one of the etcupdate testcase
with bsd diff3

Reviewed by: emaste
Differential Revision: https://reviews.freebsd.org/D41730

Details

Provenance
baptAuthored on Sep 5 2023, 11:24 AM
Reviewer
emaste
Differential Revision
D41730: diff3: make the diff3 -E -m and diff3 -m behaviour match gnu diff3
Parents
rG09b0401e91a9: linuxkpi: fix iteration in __sg_alloc_table_from_pages
Branches
Unknown
Tags
Unknown