summaryrefslogtreecommitdiff
path: root/usr.bin/diff3/tests
AgeCommit message (Collapse)Author
2024-07-15Remove residual blank line at start of MakefileWarner Losh
This is a residual of the $FreeBSD$ removal. MFC After: 3 days (though I'll just run the command on the branches) Sponsored by: Netflix
2023-09-06diff3: make the diff3 -E -m and diff3 -m behaviour match gnu diff3Baptiste Daroussin
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
2023-08-16Remove $FreeBSD$: one-line sh patternWarner Losh
Remove /^\s*#[#!]?\s*\$FreeBSD\$.*$\n/
2022-05-02diff3: Remove test case that references non existent test filesTom Jones
Sponsored by: Klara, Inc.
2022-04-19diff3: Add support for -mTom Jones
diff3 in -m mode generates a complete file with changes bracketed with conflict markers. This adds support for diff3 to generate version control style three way merge output. The output format was inferred from looking at the gnu diff3 output on a selection of test files as a specification of what diff3 -m should output is not available. It is likely there are cases where the -m output differs from other tools and I am happy to update diff3 to address these. Discussed with: pstef, kevans Sponsored by: Klara, Inc.
2022-04-19diff3: Add support for -ATom Jones
Diff3 in -A mode generates an ed script to show how the 3 files and brackets changes that conflict. The ed script generated should when applied leave familiar merge conflict markers in a patched file. Diff3 output is not documented, this feature has been arrived at by comparing bsd diff3 output to gnu diff3 output until they were made to agree. There are likely to still be differences between these formats. The gnu diff3 guide is actually quite good at explaining how diff3 output should appear, but it doesn't cover every form of output from diff3. https://www.gnu.org/software/diffutils/manual/diffutils.html#Comparing-Three-Files Discussed with: pstef, kevans Sponsored by: Klara, Inc.
2022-04-15diff3: allow diff3 ed scripts to generate deletionsTom Jones
diff3 with the -e (ed script flag) can generate line deletions, add support for deletions and add a test case to exercise this behaviour. This functionality was unearthed through comparison of bsd diff3 and gnu diff3 output. Reviewed by: pstef Sponsored by: Klara, Inc. Differential Revision: https://reviews.freebsd.org/D34912
2021-08-25diff3: document and test -TPiotr Pawel Stefaniak
Reviewed by: bapt Differential Revision: https://reviews.freebsd.org/D31650
2021-08-23diff3: implement --strip-trailing-crPiotr Pawel Stefaniak
Reviewed by: bapt Differential Revision: https://reviews.freebsd.org/D31626
2017-10-31DIRDEPS_BUILD: Connect new directories.Bryan Drewery
Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=325187
2017-05-25For now comment tests for arguments which are not in par with GNU diff3 yetBaptiste Daroussin
Notes: svn path=/head/; revision=318890
2017-05-25Import working progress BSD diff3Baptiste Daroussin
import bsd diff3 from OpenBSD. Differences with OpenBSD: - lots of warning fixed - no shell wrapper with diff3 actually living in libexec - capsicumized Keep it disconnected as it is not yet good enough to replace GNU diff The motivation to import it now it to allow other people to jump in and also to have an open development on it Obtained from: OpenBSD Notes: svn path=/head/; revision=318888