GNU bug report logs -
#48532
[PATCH] diff: clarify defaults for --color
Previous Next
Full log
View this message in rfc822 format
* src/diff.c (option_help_msgid): Make it clear that --color=auto is not
the default when --color is not specified.
Signed-off-by: Peter Oliver <git <at> mavit.org.uk>
---
src/diff.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/src/diff.c b/src/diff.c
index 6af50e8..f391ab9 100644
--- a/src/diff.c
+++ b/src/diff.c
@@ -973,8 +973,9 @@ static char const * const option_help_msgid[] = {
N_("-d, --minimal try hard to find a smaller set of changes"),
N_(" --horizon-lines=NUM keep NUM lines of the common prefix and suffix"),
N_(" --speed-large-files assume large files and many scattered small changes"),
- N_(" --color[=WHEN] colorize the output; WHEN can be 'never', 'always',\n"
- " or 'auto' (the default)"),
+ N_(" --color[=WHEN] colorize the output; WHEN can be 'never' (the\n"
+ " default), 'auto' (implied if --color is specified\n"
+ " without WHEN), or 'always'"),
N_(" --palette=PALETTE the colors to use when --color is active; PALETTE is\n"
" a colon-separated list of terminfo capabilities"),
"",
--
2.31.1
This bug report was last modified 3 years and 362 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.