<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/usr.bin/diff/diffreg.c, branch releng/12.2</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src/atom?h=releng%2F12.2</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src/atom?h=releng%2F12.2'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/'/>
<updated>2020-04-27T22:33:32Z</updated>
<entry>
<title>MFC r356723-r356725, r357649, r357652: diff(1) catch-up</title>
<updated>2020-04-27T22:33:32Z</updated>
<author>
<name>Kyle Evans</name>
<email>kevans@FreeBSD.org</email>
</author>
<published>2020-04-27T22:33:32Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=159755a7a8f1c383404da972352cf802a4fef3f4'/>
<id>urn:sha1:159755a7a8f1c383404da972352cf802a4fef3f4</id>
<content type='text'>
r356723:
mkstemp returns -1

r356724:
asprintf returns -1, not an arbitrary value &lt; 0. Also upon error the
(very sloppy specification) leaves an undefined value in *ret, so it is
wrong to inspect it, the error condition is enough.

r356725:
When system calls indicate an error they return -1, not some arbitrary
value &lt; 0.  errno is only updated in this case.

r357649:
Update diff(1) TODO removing what has been implemented

r357652:
Fix most of the style warnings
</content>
</entry>
<entry>
<title>MFC r357648:</title>
<updated>2020-03-04T11:28:49Z</updated>
<author>
<name>Baptiste Daroussin</name>
<email>bapt@FreeBSD.org</email>
</author>
<published>2020-03-04T11:28:49Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=6d660650c9e4e569b255749c82d87cbbda384240'/>
<id>urn:sha1:6d660650c9e4e569b255749c82d87cbbda384240</id>
<content type='text'>
diff: implement -y (--side-by-side) along with -W and --suppress-common-lines

PR:		219933
Submitted by:	fehmi noyan isi &lt;fnoyanisi@yahoo.com&gt;
</content>
</entry>
<entry>
<title>MFC r356695, r356731:</title>
<updated>2020-01-20T01:38:03Z</updated>
<author>
<name>Mark Johnston</name>
<email>markj@FreeBSD.org</email>
</author>
<published>2020-01-20T01:38:03Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=b34de56f4c5e0ded361f3fc7190e3b8a0c3d8563'/>
<id>urn:sha1:b34de56f4c5e0ded361f3fc7190e3b8a0c3d8563</id>
<content type='text'>
Optimize diff -q.

PR:	242828
</content>
</entry>
<entry>
<title>MFC r340138 (by oshogbo):</title>
<updated>2019-12-06T18:26:34Z</updated>
<author>
<name>Mark Johnston</name>
<email>markj@FreeBSD.org</email>
</author>
<published>2019-12-06T18:26:34Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=10a93cc038a7876c7cd4ae1b399ff4afbdbf8aa9'/>
<id>urn:sha1:10a93cc038a7876c7cd4ae1b399ff4afbdbf8aa9</id>
<content type='text'>
capsicum: use a new capsicum helpers in tools
</content>
</entry>
<entry>
<title>diff(1): Refactor -B a little bit</title>
<updated>2018-08-19T04:15:38Z</updated>
<author>
<name>Kyle Evans</name>
<email>kevans@FreeBSD.org</email>
</author>
<published>2018-08-19T04:15:38Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=9488de009c0903f02a2d3ae76b737af1ae1f41fc'/>
<id>urn:sha1:9488de009c0903f02a2d3ae76b737af1ae1f41fc</id>
<content type='text'>
Instead of doing a second pass to skip empty lines if we've specified -I, go
ahead and check both at once. Ignore critera has been split out into its own
function to try and keep the logic cleaner.
</content>
</entry>
<entry>
<title>diff(1): Implement -B/--ignore-blank-lines</title>
<updated>2018-08-19T03:57:20Z</updated>
<author>
<name>Kyle Evans</name>
<email>kevans@FreeBSD.org</email>
</author>
<published>2018-08-19T03:57:20Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=e68edb8cf06a796453378b98d963692c838c400f'/>
<id>urn:sha1:e68edb8cf06a796453378b98d963692c838c400f</id>
<content type='text'>
As noted by cem in r338035, coccinelle invokes diff(1) with the -B flag.
This was not previously implemented here, so one was forced to create a link
for GNU diff to /usr/local/bin/diff

Implement the -B flag and add some primitive tests for it. It is implemented
in the same fashion that -I is implemented; each chunk's lines are scanned,
and if a non-blank line is encountered then the chunk will be output.
Otherwise, it's skipped.

MFC after:	2 weeks
</content>
</entry>
<entry>
<title>Improve --strip-trailing-cr handling:</title>
<updated>2018-07-27T05:21:20Z</updated>
<author>
<name>Xin LI</name>
<email>delphij@FreeBSD.org</email>
</author>
<published>2018-07-27T05:21:20Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=9977c7b5127ed393b291323fc095f65b39ab7a99'/>
<id>urn:sha1:9977c7b5127ed393b291323fc095f65b39ab7a99</id>
<content type='text'>
 - Advance ctold for f1 and ctnew for f2
 - ungetc() if the character is unexpected
 - Don't break early when we hit the combination on one side

PR:		230049
Reported by:	maskray &lt;emacsray gmail com&gt;
Reviewed by:	bapt, maskray
MFC after:	2 weeks
Differential Revision:	https://reviews.freebsd.org/D16451
</content>
</entry>
<entry>
<title>Convert `cap_enter() &lt; 0 &amp;&amp; errno != ENOSYS` to `caph_enter() &lt; 0`.</title>
<updated>2018-06-19T23:43:14Z</updated>
<author>
<name>Mariusz Zaborski</name>
<email>oshogbo@FreeBSD.org</email>
</author>
<published>2018-06-19T23:43:14Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=7672a0148f79063eac8f8e0beb0db5350d02d5d4'/>
<id>urn:sha1:7672a0148f79063eac8f8e0beb0db5350d02d5d4</id>
<content type='text'>
No functional change intended.
</content>
</entry>
<entry>
<title>Isolate the pr(1) related code in its own source files</title>
<updated>2018-06-09T20:24:17Z</updated>
<author>
<name>Baptiste Daroussin</name>
<email>bapt@FreeBSD.org</email>
</author>
<published>2018-06-09T20:24:17Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=6fa5bf0832efe8a894f612968c5afe1ad91f3a03'/>
<id>urn:sha1:6fa5bf0832efe8a894f612968c5afe1ad91f3a03</id>
<content type='text'>
This keeps diffreg.c closer to what it is supposed to do:
diffing regular files.

It also allows my code to get a proper license
</content>
</entry>
<entry>
<title>Replace homemade equivalent of tolower(3) by towlower(3)</title>
<updated>2017-12-13T16:09:00Z</updated>
<author>
<name>Baptiste Daroussin</name>
<email>bapt@FreeBSD.org</email>
</author>
<published>2017-12-13T16:09:00Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=0118df5ecf3718e0dbb2c9943e72437908efada2'/>
<id>urn:sha1:0118df5ecf3718e0dbb2c9943e72437908efada2</id>
<content type='text'>
This will help in the futur making diff -i works with multibyte
</content>
</entry>
</feed>
