emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#48532: closed ([PATCH] diff: clarify defaults for --color)


From: GNU bug Tracking System
Subject: bug#48532: closed ([PATCH] diff: clarify defaults for --color)
Date: Fri, 21 May 2021 07:14:02 +0000

Your message dated Fri, 21 May 2021 00:13:23 -0700
with message-id <e92278b2-2a4d-2a56-8208-07f737fabc18@cs.ucla.edu>
and subject line Re: [bug-diffutils] bug#48532: [PATCH] diff: clarify defaults 
for --color
has caused the debbugs.gnu.org bug report #48532,
regarding [PATCH] diff: clarify defaults for --color
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs@gnu.org.)


-- 
48532: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=48532
GNU Bug Tracking System
Contact help-debbugs@gnu.org with problems
--- Begin Message --- Subject: [PATCH] diff: clarify defaults for --color Date: Thu, 20 May 2021 13:00:22 +0100
* 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@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




--- End Message ---
--- Begin Message --- Subject: Re: [bug-diffutils] bug#48532: [PATCH] diff: clarify defaults for --color Date: Fri, 21 May 2021 00:13:23 -0700 User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.1 Thanks for the report about the confusing wording. I installed the attached, which avoids the tricky word "default" entirely.

Attachment: 0001-diff-better-color-help.patch
Description: Text Data


--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]