]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
diff3: make the diff3 -E -m and diff3 -m behaviour match gnu diff3
authorBaptiste Daroussin <bapt@FreeBSD.org>
Tue, 5 Sep 2023 11:24:53 +0000 (13:24 +0200)
committerBaptiste Daroussin <bapt@FreeBSD.org>
Wed, 6 Sep 2023 15:06:39 +0000 (17:06 +0200)
commitb37a6938e39a7ed9542fafee671465bf719fd537
tree854b494f9ff519d28ce57d833f14f0636363b7ae
parent09b0401e91a92bcb58ea1873857b42f8211f660f
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
usr.bin/diff3/diff3.c
usr.bin/diff3/tests/Makefile
usr.bin/diff3/tests/diff3_test.sh
usr.bin/diff3/tests/fbsdid1.txt [new file with mode: 0644]
usr.bin/diff3/tests/fbsdid2.txt [new file with mode: 0644]