freebsd-src/usr.bin/diff
Cameron Katri f38702e5a5 diff(1): Add --color support
Adds a --color flag to diff(1) that supports the same options as GNU's
diff(1). The colors are customizable with the env var DIFFCOLORS in
a format similar to grep(1)'s GREPCOLORS. An example would be 04;36:41
for additions to be underlined light blue, and deletions have a red
background.

Differential Revision:	https://reviews.freebsd.org/D30545
2021-09-16 01:46:44 +02:00
..
tests diff: read whole files to determine if they are ASCII text 2021-08-23 16:09:05 +02:00
diff.1 diff(1): Add --color support 2021-09-16 01:46:44 +02:00
diff.c diff(1): Add --color support 2021-09-16 01:46:44 +02:00
diff.h diff(1): Add --color support 2021-09-16 01:46:44 +02:00
diffdir.c diff: move functions around and reduce their visibility 2021-09-16 01:36:41 +02:00
diffreg.c diff(1): Add --color support 2021-09-16 01:46:44 +02:00
Makefile
pr.c
pr.h
TODO Update diff(1) TODO removing what has been implemented 2020-02-07 10:18:01 +00:00
xmalloc.c asprintf returns -1, not an arbitrary value < 0. Also upon error the 2020-01-14 08:18:04 +00:00
xmalloc.h