| #
878cee8d
|
| 09-Feb-2026 |
Tuukka Pasanen <tuukka.pasanen@ilmi.fi> |
diff: Add SPDX-License-Identifier tag
Reviewed by: emaste Sponsored by: The FreeBSD Foundation
|
| #
4d73b07d
|
| 02-Feb-2026 |
Baptiste Daroussin <bapt@FreeBSD.org> |
diff: fix support for -l with new diff algorithm
MFC After: 3 days Reviewed by: des Differential Revision: https://reviews.freebsd.org/D55052
|
| #
9f1e4ea6
|
| 20-Jun-2025 |
Dag-Erling Smørgrav <des@FreeBSD.org> |
diff: Whitespace nits.
Sponsored by: Klara, Inc.
|
| #
d9a9f23d
|
| 27-Mar-2024 |
Dag-Erling Smørgrav <des@FreeBSD.org> |
diff: Integrate libdiff from OpenBSD GoT.
This adds support for two new diff algorithms, Myers diff and Patience diff.
These algorithms perform a different form of search compared to the classic St
diff: Integrate libdiff from OpenBSD GoT.
This adds support for two new diff algorithms, Myers diff and Patience diff.
These algorithms perform a different form of search compared to the classic Stone algorithm and support escapes when worst case scenarios are encountered.
Add the -A flag to allow selection of the algorithm, but default to using the new Myers diff implementation.
The libdiff implementation currently only supports a subset of input and output options supported by diff. When these options are used, but the algorithm is not selected, automatically fallback to the classic Stone algorithm until support for these modes can be added.
Based on work originally done by thj@ with contributions from kevans@.
Sponsored by: Klara, Inc. Reviewed by: thj Differential Revision: https://reviews.freebsd.org/D44302
show more ...
|
| #
bdcbfde3
|
| 23-Nov-2023 |
Warner Losh <imp@FreeBSD.org> |
usr.bin: Remove ancient SCCS tags.
Remove ancient SCCS tags from the tree, automated scripting, with two minor fixup to keep things compiling. All the common forms in the tree were removed with a pe
usr.bin: Remove ancient SCCS tags.
Remove ancient SCCS tags from the tree, automated scripting, with two minor fixup to keep things compiling. All the common forms in the tree were removed with a perl script.
Sponsored by: Netflix
show more ...
|
| #
42b38843
|
| 16-Aug-2023 |
Warner Losh <imp@FreeBSD.org> |
Remove $FreeBSD$: one-line .h pattern
Remove /^\s*\*+\s*\$FreeBSD\$.*$\n/
|
| #
f4be3645
|
| 18-Feb-2022 |
Tom Jones <thj@FreeBSD.org> |
diff: add --no-dereference flag
When diffing files and directories, don't follow symbolic links, instead compare where the links point to.
Reviewed by: bapt Sponsored by: Klara Inc. Differential Re
diff: add --no-dereference flag
When diffing files and directories, don't follow symbolic links, instead compare where the links point to.
Reviewed by: bapt Sponsored by: Klara Inc. Differential Revision: https://reviews.freebsd.org/D34203
show more ...
|
| #
e51aabf8
|
| 05-Sep-2021 |
Piotr Pawel Stefaniak <pstef@FreeBSD.org> |
diff: implement option -F (--show-function-line)
With unified and context diffs, show the last line that matches the provided pattern before the context.
Reviewed by: bapt Differential Revision: ht
diff: implement option -F (--show-function-line)
With unified and context diffs, show the last line that matches the provided pattern before the context.
Reviewed by: bapt Differential Revision: https://reviews.freebsd.org/D31714
show more ...
|
| #
f38702e5
|
| 05-Sep-2021 |
Cameron Katri <me@cameronkatri.com> |
diff(1): Add --color support
Adds a --color flag to diff(1) that supports the same options as GNU's diff(1). The colors are customizable with the env var DIFFCOLORS in a format similar to grep(1)'s
diff(1): Add --color support
Adds a --color flag to diff(1) that supports the same options as GNU's diff(1). The colors are customizable with the env var DIFFCOLORS in a format similar to grep(1)'s GREPCOLORS. An example would be 04;36:41 for additions to be underlined light blue, and deletions have a red background.
Differential Revision: https://reviews.freebsd.org/D30545
show more ...
|
| #
e43df07e
|
| 04-Sep-2021 |
Piotr Pawel Stefaniak <pstef@FreeBSD.org> |
diff: move functions around and reduce their visibility
Most of them become static. There will be more such functions added in upcoming commits, so they would be inconsistent with existing code. Imp
diff: move functions around and reduce their visibility
Most of them become static. There will be more such functions added in upcoming commits, so they would be inconsistent with existing code. Improve the existing code instead of reinforcing the unwanted pattern.
show more ...
|
| #
b5541f45
|
| 04-Sep-2021 |
Piotr Pawel Stefaniak <pstef@FreeBSD.org> |
diff: convert boolean flag variables to bool
There will be more boolean flags added in upcoming commits and they would have to be stored in ints in order to be consistent with existing code. Change
diff: convert boolean flag variables to bool
There will be more boolean flags added in upcoming commits and they would have to be stored in ints in order to be consistent with existing code. Change the existing code to use the bool type.
show more ...
|
| #
03582021
|
| 29-Aug-2021 |
Piotr Pawel Stefaniak <pstef@FreeBSD.org> |
diff: improve code style
Reflow comments, strip trailing space, improve wrapping of lines.
|
| #
931ad518
|
| 27-Jan-2021 |
Baptiste Daroussin <bapt@FreeBSD.org> |
diff: remove stalled entries in headers
|
| #
fefb3c46
|
| 25-Jan-2021 |
Jamie Landeg-Jones <jamie@catflap.org> |
diff: fix incorrectly displaying files as duplicates
When diff hits certain access errors, function diffreg() shows the error message, and then returns to the calling function, which calls print_sta
diff: fix incorrectly displaying files as duplicates
When diff hits certain access errors, function diffreg() shows the error message, and then returns to the calling function, which calls print_status() with the return value.
However, in these cases, the return value isn't changed from the initial default value of D_SAME.
Normally, print_status() with a value of D_SAME does nothing, so this works out ok, however, if the "-s" flag is set, a message is displayed showing identicality:
case D_SAME: if (sflag) printf("Files %s%s and %s%s are identical\n", path1, entry, path2, entry); break;
This then produces such results as:
% diff -s /COPYRIGHT /var/run/rpcbind.sock diff: /var/run/rpcbind.sock: Operation not supported Files /COPYRIGHT and /var/run/rpcbind.sock are identical
% diff -s /COPYRIGHT /etc/master.passwd diff: /etc/master.passwd: Permission denied Files /COPYRIGHT and /etc/master.passwd are identical
Create a D_ERROR status which is returned in such cases, and print_status() then deals with that status seperately from D_SAME
PR: 252614 MFC after: 1 week
show more ...
|
| #
db9cccfb
|
| 20-Apr-2020 |
Kyle Evans <kevans@FreeBSD.org> |
diff(1): reject conflicting formatting options
This matches GNU diff(1) behavior and, more importantly, eliminates any source of confusion if multiple formatting options are specified.
Note that th
diff(1): reject conflicting formatting options
This matches GNU diff(1) behavior and, more importantly, eliminates any source of confusion if multiple formatting options are specified.
Note that the committed diff differs slightly from the submitted: I've modified it so that we initialize diff_format to something that isn't an accepted format option so that we can also reject --normal -c and -c --normal, which would've otherwise been accepted because the default was --normal. After option parsing we default it to D_NORMAL if it's still unset.
PR: 243975 Submitted by: fehmi noyan isi MFC after: 1 week
show more ...
|
| #
bc02c18c
|
| 07-Feb-2020 |
Dimitry Andric <dim@FreeBSD.org> |
Merge ^/head r357408 through r357661.
|
| #
64793e74
|
| 07-Feb-2020 |
Baptiste Daroussin <bapt@FreeBSD.org> |
diff: implement -y (--side-by-side) along with -W and --suppress-common-lines
PR: 219933 Submitted by: fehmi noyan isi <fnoyanisi@yahoo.com> MFC after: 3 weeks
|
| #
7847e041
|
| 24-Aug-2018 |
Dimitry Andric <dim@FreeBSD.org> |
Merge ^/head r338026 through r338297, and resolve conflicts.
|
| #
9f1e4ea6
|
| 20-Jun-2025 |
Dag-Erling Smørgrav <des@FreeBSD.org> |
diff: Whitespace nits.
Sponsored by: Klara, Inc.
|
| #
d9a9f23d
|
| 27-Mar-2024 |
Dag-Erling Smørgrav <des@FreeBSD.org> |
diff: Integrate libdiff from OpenBSD GoT.
This adds support for two new diff algorithms, Myers diff and Patience diff.
These algorithms perform a different form of search compared to the classic St
diff: Integrate libdiff from OpenBSD GoT.
This adds support for two new diff algorithms, Myers diff and Patience diff.
These algorithms perform a different form of search compared to the classic Stone algorithm and support escapes when worst case scenarios are encountered.
Add the -A flag to allow selection of the algorithm, but default to using the new Myers diff implementation.
The libdiff implementation currently only supports a subset of input and output options supported by diff. When these options are used, but the algorithm is not selected, automatically fallback to the classic Stone algorithm until support for these modes can be added.
Based on work originally done by thj@ with contributions from kevans@.
Sponsored by: Klara, Inc. Reviewed by: thj Differential Revision: https://reviews.freebsd.org/D44302
show more ...
|
| #
bdcbfde3
|
| 23-Nov-2023 |
Warner Losh <imp@FreeBSD.org> |
usr.bin: Remove ancient SCCS tags.
Remove ancient SCCS tags from the tree, automated scripting, with two minor fixup to keep things compiling. All the common forms in the tree were removed with a pe
usr.bin: Remove ancient SCCS tags.
Remove ancient SCCS tags from the tree, automated scripting, with two minor fixup to keep things compiling. All the common forms in the tree were removed with a perl script.
Sponsored by: Netflix
show more ...
|
| #
42b38843
|
| 16-Aug-2023 |
Warner Losh <imp@FreeBSD.org> |
Remove $FreeBSD$: one-line .h pattern
Remove /^\s*\*+\s*\$FreeBSD\$.*$\n/
|
| #
f4be3645
|
| 18-Feb-2022 |
Tom Jones <thj@FreeBSD.org> |
diff: add --no-dereference flag
When diffing files and directories, don't follow symbolic links, instead compare where the links point to.
Reviewed by: bapt Sponsored by: Klara Inc. Differential Re
diff: add --no-dereference flag
When diffing files and directories, don't follow symbolic links, instead compare where the links point to.
Reviewed by: bapt Sponsored by: Klara Inc. Differential Revision: https://reviews.freebsd.org/D34203
show more ...
|
| #
e51aabf8
|
| 05-Sep-2021 |
Piotr Pawel Stefaniak <pstef@FreeBSD.org> |
diff: implement option -F (--show-function-line)
With unified and context diffs, show the last line that matches the provided pattern before the context.
Reviewed by: bapt Differential Revision: ht
diff: implement option -F (--show-function-line)
With unified and context diffs, show the last line that matches the provided pattern before the context.
Reviewed by: bapt Differential Revision: https://reviews.freebsd.org/D31714
show more ...
|
| #
f38702e5
|
| 05-Sep-2021 |
Cameron Katri <me@cameronkatri.com> |
diff(1): Add --color support
Adds a --color flag to diff(1) that supports the same options as GNU's diff(1). The colors are customizable with the env var DIFFCOLORS in a format similar to grep(1)'s
diff(1): Add --color support
Adds a --color flag to diff(1) that supports the same options as GNU's diff(1). The colors are customizable with the env var DIFFCOLORS in a format similar to grep(1)'s GREPCOLORS. An example would be 04;36:41 for additions to be underlined light blue, and deletions have a red background.
Differential Revision: https://reviews.freebsd.org/D30545
show more ...
|