2c4276aa | 01-Aug-2022 |
Tom Jones <thj@FreeBSD.org> |
diff3: Use variables for old and new in A scripts
This makes the code easier to follow, no functional changes intended
Sponsored by: Klara, Inc. |
034dd2d5 | 19-Apr-2022 |
Tom Jones <thj@FreeBSD.org> |
diff3: Add support for -m
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 outpu
diff3: Add support for -m
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.
show more ...
|
9ab079c5 | 19-Apr-2022 |
Tom Jones <thj@FreeBSD.org> |
diff3: Add support for -A
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 conflic
diff3: Add support for -A
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.
show more ...
|