HomeFreeBSD

diff(1): Add --color support

Description

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

Details

Provenance
me_cameronkatri.comAuthored on Sep 5 2021, 12:10 AM
pstefCommitted on Sep 15 2021, 11:46 PM
Differential Revision
D30545: diff(1): Add --color support
Parents
rG7760b8541418: diff: decrease indent level
Branches
Unknown
Tags
Unknown