opnsense-src/usr.bin/diff
Kyle Evans e68edb8cf0 diff(1): Implement -B/--ignore-blank-lines
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
2018-08-19 03:57:20 +00:00
..
tests diff(1): Implement -B/--ignore-blank-lines 2018-08-19 03:57:20 +00:00
diff.1 diff(1): Implement -B/--ignore-blank-lines 2018-08-19 03:57:20 +00:00
diff.c diff(1): Implement -B/--ignore-blank-lines 2018-08-19 03:57:20 +00:00
diff.h diff(1): Implement -B/--ignore-blank-lines 2018-08-19 03:57:20 +00:00
diffdir.c diff: Import fixes from OpenBSD 2018-06-09 21:09:24 +00:00
diffreg.c diff(1): Implement -B/--ignore-blank-lines 2018-08-19 03:57:20 +00:00
Makefile Isolate the pr(1) related code in its own source files 2018-06-09 20:24:17 +00:00
pr.c Fix memory leak 2018-06-12 16:42:11 +00:00
pr.h Isolate the pr(1) related code in its own source files 2018-06-09 20:24:17 +00:00
TODO diff(1): Implement -B/--ignore-blank-lines 2018-08-19 03:57:20 +00:00
xmalloc.c
xmalloc.h