| #
71569594
|
| 11-Feb-2026 |
Dag-Erling Smørgrav <des@FreeBSD.org> |
diff: Improve directory loop detection
When we're done processing a directory, remove its entry from the tree of visited inodes, ensuring that we only report a loop when we encounter a descendant-to
diff: Improve directory loop detection
When we're done processing a directory, remove its entry from the tree of visited inodes, ensuring that we only report a loop when we encounter a descendant-to-ancestor link, not when we encounter a cousin-to-cousin or sibling-to-sibling link.
MFC after: 1 week Reported by: Bakul Shah <bakul@iitbombay.org> Sponsored by: Klara, Inc. Reviewed by: kevans Differential Revision: https://reviews.freebsd.org/D55248
show more ...
|
| #
ee44ab93
|
| 05-Feb-2026 |
Cy Schubert <cy@FreeBSD.org> |
diff: Fix build
rc must be defined first.
Fixes: 590126789c84 MFC after: 1 week X-MFC with: 590126789c84
|
| #
59012678
|
| 05-Feb-2026 |
Dag-Erling Smørgrav <des@FreeBSD.org> |
diff: Don't compare a file or directory to itself
While here, stop abusing struct dirent for something we don't even need to store.
PR: 254455 MFC after: 1 week Sponsored by: Klara, Inc. Reviewed
diff: Don't compare a file or directory to itself
While here, stop abusing struct dirent for something we don't even need to store.
PR: 254455 MFC after: 1 week Sponsored by: Klara, Inc. Reviewed by: thj, kevans Differential Revision: https://reviews.freebsd.org/D55113
show more ...
|
| #
0a5b763d
|
| 23-Jun-2025 |
Dag-Erling Smørgrav <des@FreeBSD.org> |
libc: Rename fscandir{,_b}() to fdscandir{,_b}().
This seems to fit the pattern better (e.g. fdopendir()).
I've added weak references to ease the transition, but since it's only been a few days, we
libc: Rename fscandir{,_b}() to fdscandir{,_b}().
This seems to fit the pattern better (e.g. fdopendir()).
I've added weak references to ease the transition, but since it's only been a few days, we can remove them (and the ObsoleteFiles entries for the manual pages) before we branch stable/15.
Fixes: deeebfdecab5 Sponsored by: Klara, Inc. Reviewed by: kevans Differential Revision: https://reviews.freebsd.org/D50980
show more ...
|
| #
28d9586c
|
| 20-Jun-2025 |
Dag-Erling Smørgrav <des@FreeBSD.org> |
diff: Fix gcc build.
Sponsored by: Klara, Inc.
|
| #
42092e1b
|
| 20-Jun-2025 |
Dag-Erling Smørgrav <des@FreeBSD.org> |
diff: Detect loops when diffing directories.
Sponsored by: Klara, Inc. Reviewed by: markj Differential Revision: https://reviews.freebsd.org/D50936
|
| #
eea5f8d4
|
| 03-May-2024 |
Dag-Erling Smørgrav <des@FreeBSD.org> |
diff: Sort headers.
MFC after: 1 week Sponsored by: Klara, Inc. Reviewed by: markj Differential Revision: https://reviews.freebsd.org/D45078
|
| #
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 ...
|
| #
1d386b48
|
| 16-Aug-2023 |
Warner Losh <imp@FreeBSD.org> |
Remove $FreeBSD$: one-line .c pattern
Remove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/
|
| #
3931c072
|
| 18-Feb-2022 |
Tom Jones <thj@FreeBSD.org> |
diff: fix failed compare when ignoring file case
With --ignore-file-name-case we need to compare files regardless of case. We need to propigate both names down to diffit so we can look up the correc
diff: fix failed compare when ignoring file case
With --ignore-file-name-case we need to compare files regardless of case. We need to propigate both names down to diffit so we can look up the correct file when the names differ based on case, otherwise we try to look up the file using the case from the a tree which might not be discoverable if its case is different in the b tree.
Reviewed by: bapt Sponsored by: Klara Inc. Differential Revision: https://reviews.freebsd.org/D34201
show more ...
|
| #
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 ...
|
| #
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 ...
|
| #
0a5b763d
|
| 23-Jun-2025 |
Dag-Erling Smørgrav <des@FreeBSD.org> |
libc: Rename fscandir{,_b}() to fdscandir{,_b}().
This seems to fit the pattern better (e.g. fdopendir()).
I've added weak references to ease the transition, but since it's only been a few days, we
libc: Rename fscandir{,_b}() to fdscandir{,_b}().
This seems to fit the pattern better (e.g. fdopendir()).
I've added weak references to ease the transition, but since it's only been a few days, we can remove them (and the ObsoleteFiles entries for the manual pages) before we branch stable/15.
Fixes: deeebfdecab5 Sponsored by: Klara, Inc. Reviewed by: kevans Differential Revision: https://reviews.freebsd.org/D50980
show more ...
|
| #
28d9586c
|
| 20-Jun-2025 |
Dag-Erling Smørgrav <des@FreeBSD.org> |
diff: Fix gcc build.
Sponsored by: Klara, Inc.
|
| #
42092e1b
|
| 20-Jun-2025 |
Dag-Erling Smørgrav <des@FreeBSD.org> |
diff: Detect loops when diffing directories.
Sponsored by: Klara, Inc. Reviewed by: markj Differential Revision: https://reviews.freebsd.org/D50936
|
| #
eea5f8d4
|
| 03-May-2024 |
Dag-Erling Smørgrav <des@FreeBSD.org> |
diff: Sort headers.
MFC after: 1 week Sponsored by: Klara, Inc. Reviewed by: markj Differential Revision: https://reviews.freebsd.org/D45078
|
| #
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 ...
|
| #
1d386b48
|
| 16-Aug-2023 |
Warner Losh <imp@FreeBSD.org> |
Remove $FreeBSD$: one-line .c pattern
Remove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/
|
| #
3931c072
|
| 18-Feb-2022 |
Tom Jones <thj@FreeBSD.org> |
diff: fix failed compare when ignoring file case
With --ignore-file-name-case we need to compare files regardless of case. We need to propigate both names down to diffit so we can look up the correc
diff: fix failed compare when ignoring file case
With --ignore-file-name-case we need to compare files regardless of case. We need to propigate both names down to diffit so we can look up the correct file when the names differ based on case, otherwise we try to look up the file using the case from the a tree which might not be discoverable if its case is different in the b tree.
Reviewed by: bapt Sponsored by: Klara Inc. Differential Revision: https://reviews.freebsd.org/D34201
show more ...
|
| #
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 ...
|
| #
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 ...
|
| #
e620f7fb
|
| 09-Jun-2018 |
Baptiste Daroussin <bapt@FreeBSD.org> |
diff: Import fixes from OpenBSD
original commit log by miller@OpenBSD r1.46: Fix exit value when diffing directories with missing files and the -N or -P options are not used. From Ibrahim Khalifa
|
| #
531c2d7a
|
| 24-Jul-2017 |
Enji Cooper <ngie@FreeBSD.org> |
MFhead@r320180
|
| #
bca9d05f
|
| 23-Jul-2017 |
Hans Petter Selasky <hselasky@FreeBSD.org> |
Merge ^/head r319973 through 321382.
|
| #
2fef18f8
|
| 19-Jul-2017 |
Dimitry Andric <dim@FreeBSD.org> |
Merge ^/head r320994 through r321238.
|