<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/usr.bin/diff/diffdir.c, branch main</title>
<subtitle>FreeBSD source tree</subtitle>
<id>http://cgit.freebsd.org/src/atom?h=main</id>
<link rel='self' href='http://cgit.freebsd.org/src/atom?h=main'/>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/'/>
<updated>2026-02-11T16:24:54Z</updated>
<entry>
<title>diff: Improve directory loop detection</title>
<updated>2026-02-11T16:24:54Z</updated>
<author>
<name>Dag-Erling Smørgrav</name>
<email>des@FreeBSD.org</email>
</author>
<published>2026-02-11T16:24:54Z</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=71569594d860a59d8362770a56d806e1d31fb946'/>
<id>urn:sha1:71569594d860a59d8362770a56d806e1d31fb946</id>
<content type='text'>
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 &lt;bakul@iitbombay.org&gt;
Sponsored by:	Klara, Inc.
Reviewed by:	kevans
Differential Revision:	https://reviews.freebsd.org/D55248
</content>
</entry>
<entry>
<title>diff: Fix build</title>
<updated>2026-02-05T15:26:01Z</updated>
<author>
<name>Cy Schubert</name>
<email>cy@FreeBSD.org</email>
</author>
<published>2026-02-05T15:18:09Z</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=ee44ab936e84bacaa49847d36aabdf280f9fecce'/>
<id>urn:sha1:ee44ab936e84bacaa49847d36aabdf280f9fecce</id>
<content type='text'>
rc must be defined first.

Fixes:		590126789c84
MFC after:	1 week
X-MFC with:	590126789c84
</content>
</entry>
<entry>
<title>diff: Don't compare a file or directory to itself</title>
<updated>2026-02-05T14:39:57Z</updated>
<author>
<name>Dag-Erling Smørgrav</name>
<email>des@FreeBSD.org</email>
</author>
<published>2026-02-05T14:39:57Z</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=590126789c841d80655869bc075c8980c173dd1c'/>
<id>urn:sha1:590126789c841d80655869bc075c8980c173dd1c</id>
<content type='text'>
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
</content>
</entry>
<entry>
<title>libc: Rename fscandir{,_b}() to fdscandir{,_b}().</title>
<updated>2025-06-23T13:03:10Z</updated>
<author>
<name>Dag-Erling Smørgrav</name>
<email>des@FreeBSD.org</email>
</author>
<published>2025-06-23T13:02:53Z</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=0a5b763d98b921f921243525ff25a70bbe00cfaa'/>
<id>urn:sha1:0a5b763d98b921f921243525ff25a70bbe00cfaa</id>
<content type='text'>
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
</content>
</entry>
<entry>
<title>diff: Fix gcc build.</title>
<updated>2025-06-20T15:42:40Z</updated>
<author>
<name>Dag-Erling Smørgrav</name>
<email>des@FreeBSD.org</email>
</author>
<published>2025-06-20T15:30:03Z</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=28d9586cde8dc783f7b698b10c2b564fde14ae74'/>
<id>urn:sha1:28d9586cde8dc783f7b698b10c2b564fde14ae74</id>
<content type='text'>
Sponsored by:	Klara, Inc.
</content>
</entry>
<entry>
<title>diff: Detect loops when diffing directories.</title>
<updated>2025-06-20T11:10:35Z</updated>
<author>
<name>Dag-Erling Smørgrav</name>
<email>des@FreeBSD.org</email>
</author>
<published>2025-06-20T11:10:35Z</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=42092e1b6625b8226de5f34d22b9a96c713626cb'/>
<id>urn:sha1:42092e1b6625b8226de5f34d22b9a96c713626cb</id>
<content type='text'>
Sponsored by:	Klara, Inc.
Reviewed by:	markj
Differential Revision:	https://reviews.freebsd.org/D50936
</content>
</entry>
<entry>
<title>diff: Sort headers.</title>
<updated>2024-05-03T15:03:50Z</updated>
<author>
<name>Dag-Erling Smørgrav</name>
<email>des@FreeBSD.org</email>
</author>
<published>2024-05-03T15:03:06Z</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=eea5f8d408604c2f70e068f7806a226fe01fc559'/>
<id>urn:sha1:eea5f8d408604c2f70e068f7806a226fe01fc559</id>
<content type='text'>
MFC after:	1 week
Sponsored by:	Klara, Inc.
Reviewed by:	markj
Differential Revision:	https://reviews.freebsd.org/D45078
</content>
</entry>
<entry>
<title>diff: Integrate libdiff from OpenBSD GoT.</title>
<updated>2024-03-27T10:03:33Z</updated>
<author>
<name>Dag-Erling Smørgrav</name>
<email>des@FreeBSD.org</email>
</author>
<published>2024-03-27T10:03:33Z</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=d9a9f23d0b3f1676d5656b76301341c0037d15b7'/>
<id>urn:sha1:d9a9f23d0b3f1676d5656b76301341c0037d15b7</id>
<content type='text'>
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
</content>
</entry>
<entry>
<title>Remove $FreeBSD$: one-line .c pattern</title>
<updated>2023-08-16T17:54:42Z</updated>
<author>
<name>Warner Losh</name>
<email>imp@FreeBSD.org</email>
</author>
<published>2023-08-16T17:54:42Z</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=1d386b48a555f61cb7325543adbbb5c3f3407a66'/>
<id>urn:sha1:1d386b48a555f61cb7325543adbbb5c3f3407a66</id>
<content type='text'>
Remove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/
</content>
</entry>
<entry>
<title>diff: fix failed compare when ignoring file case</title>
<updated>2022-02-18T15:51:38Z</updated>
<author>
<name>Tom Jones</name>
<email>thj@FreeBSD.org</email>
</author>
<published>2022-02-18T15:21:23Z</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=3931c072c63d5a51d83157009e7f7510e08da80c'/>
<id>urn:sha1:3931c072c63d5a51d83157009e7f7510e08da80c</id>
<content type='text'>
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
</content>
</entry>
</feed>
