<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/usr.bin/diff/diff.1, 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:50:08Z</updated>
<entry>
<title>MFC r357875: diff: fix segfault with --tabsize and no/malformed argument</title>
<updated>2020-04-27T22:50:08Z</updated>
<author>
<name>Kyle Evans</name>
<email>kevans@FreeBSD.org</email>
</author>
<published>2020-04-27T22:50:08Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=21949c4f78d666f9bd675bb0d4204cc0b73313ca'/>
<id>urn:sha1:21949c4f78d666f9bd675bb0d4204cc0b73313ca</id>
<content type='text'>
--tabsize was previously listed as optional_argument, but didn't account for
the optionality of it in the argument handling. This is irrelevant -- the
manpage doesn't indicate that the argument is optional, and indeed there's
no clear interpretation of omitting the argument because there's no other
side effect of --tabsize.

The "malformed" argument part of the header on this message is simply
referring to usage like this:

% diff --tabsize 4 A B

With an optional_argument, the argument must be attached to the parameter
directly (e.g. --tabsize=4), so the argument is effectively NULL with the
above invocation as if no argument had been passed.

PR:		243974
</content>
</entry>
<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>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>Cross reference pr(1) which diff might call with -l option</title>
<updated>2017-04-20T19:14:52Z</updated>
<author>
<name>Baptiste Daroussin</name>
<email>bapt@FreeBSD.org</email>
</author>
<published>2017-04-20T19:14:52Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=933870f0d15022c5b0fe67b07d0a905a36c8bee8'/>
<id>urn:sha1:933870f0d15022c5b0fe67b07d0a905a36c8bee8</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Document all long options</title>
<updated>2017-04-20T19:05:43Z</updated>
<author>
<name>Baptiste Daroussin</name>
<email>bapt@FreeBSD.org</email>
</author>
<published>2017-04-20T19:05:43Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=bcf91ad6d37242cff083060455337942cd3443c5'/>
<id>urn:sha1:bcf91ad6d37242cff083060455337942cd3443c5</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Implement a basic --changed-group-format</title>
<updated>2017-04-20T14:22:33Z</updated>
<author>
<name>Baptiste Daroussin</name>
<email>bapt@FreeBSD.org</email>
</author>
<published>2017-04-20T14:22:33Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=fddcb7b82ff45dc9e08bab26bbfe7a2d2e8ca20f'/>
<id>urn:sha1:fddcb7b82ff45dc9e08bab26bbfe7a2d2e8ca20f</id>
<content type='text'>
etcupdate(8) requires that option, while GNU diff supports many more variation
of that options, their behaviour beside the simple verion implemented here are
quite inconsistent as such I do not plan to implement those.

The only special keyword supported by this implementation are: %&lt; and %&gt;
%= is not implemented as the documentation of GNU diff says: common lines, but
it actually when tested print the changes from the first file
</content>
</entry>
<entry>
<title>add a stub --speed-large-files for compatibility with GNU diff</title>
<updated>2017-04-08T08:46:02Z</updated>
<author>
<name>Baptiste Daroussin</name>
<email>bapt@FreeBSD.org</email>
</author>
<published>2017-04-08T08:46:02Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=a077708d356b8c6c896cac91a44848115a574bd2'/>
<id>urn:sha1:a077708d356b8c6c896cac91a44848115a574bd2</id>
<content type='text'>
There is no intention to implement it, but lots of scripts/tools using
diff(1) passes GNU diff option
</content>
</entry>
<entry>
<title>diff(1): document remaining long options</title>
<updated>2017-03-23T04:35:52Z</updated>
<author>
<name>Enji Cooper</name>
<email>ngie@FreeBSD.org</email>
</author>
<published>2017-03-23T04:35:52Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=7dacb9e765019feeaa1afd9a3714fc54d0145925'/>
<id>urn:sha1:7dacb9e765019feeaa1afd9a3714fc54d0145925</id>
<content type='text'>
While here, try and tie together some of the short options with
their long option equivalents, where possible.

Sponsored by:	Dell EMC Isilon
</content>
</entry>
<entry>
<title>diff(1): fix SYNOPSIS section noting non-existent option, --no-ignore-case</title>
<updated>2017-03-22T18:13:14Z</updated>
<author>
<name>Enji Cooper</name>
<email>ngie@FreeBSD.org</email>
</author>
<published>2017-03-22T18:13:14Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=78b83a1ea1755129c405415d0deaaa9cef0fa3af'/>
<id>urn:sha1:78b83a1ea1755129c405415d0deaaa9cef0fa3af</id>
<content type='text'>
`--no-ignore-case` should be `--no-ignore-file-name-case` per code for
compatibility with [g]diff(1).

Sponsored by:	Dell EMC Isilon
</content>
</entry>
</feed>
