GNU bug report logs - #48532
[PATCH] diff: clarify defaults for --color

Previous Next

Package: diffutils;

Reported by: Peter Oliver <p.d.oliver <at> mavit.org.uk>

Date: Thu, 20 May 2021 12:02:02 UTC

Severity: normal

Tags: patch

Done: Paul Eggert <eggert <at> cs.ucla.edu>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 48532 in the body.
You can then email your comments to 48532 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-diffutils <at> gnu.org:
bug#48532; Package diffutils. (Thu, 20 May 2021 12:02:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Peter Oliver <p.d.oliver <at> mavit.org.uk>:
New bug report received and forwarded. Copy sent to bug-diffutils <at> gnu.org. (Thu, 20 May 2021 12:02:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Peter Oliver <p.d.oliver <at> mavit.org.uk>
To: bug-diffutils <at> gnu.org
Cc: Peter Oliver <git <at> mavit.org.uk>
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 <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





Reply sent to Paul Eggert <eggert <at> cs.ucla.edu>:
You have taken responsibility. (Fri, 21 May 2021 07:14:02 GMT) Full text and rfc822 format available.

Notification sent to Peter Oliver <p.d.oliver <at> mavit.org.uk>:
bug acknowledged by developer. (Fri, 21 May 2021 07:14:02 GMT) Full text and rfc822 format available.

Message #10 received at 48532-done <at> debbugs.gnu.org (full text, mbox):

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: Peter Oliver <p.d.oliver <at> mavit.org.uk>
Cc: Peter Oliver <git <at> mavit.org.uk>, 48532-done <at> debbugs.gnu.org
Subject: Re: [bug-diffutils] bug#48532: [PATCH] diff: clarify defaults for
 --color
Date: Fri, 21 May 2021 00:13:23 -0700
[Message part 1 (text/plain, inline)]
Thanks for the report about the confusing wording. I installed the 
attached, which avoids the tricky word "default" entirely.
[0001-diff-better-color-help.patch (text/x-patch, attachment)]

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Fri, 18 Jun 2021 11:24:05 GMT) Full text and rfc822 format available.

This bug report was last modified 3 years and 361 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.