git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: color (red) for error messages on all git commands

From
Michael J Gruber <git@drmicha.warpmail.net>
Date
Mar 25, 2010, 08:43 UTC
Message-ID
<4BAB2234.4070202@drmicha.warpmail.net>
In-Reply-To
<81b0412b1003241612m41f6ae2ctaa5b89ed37b58da2@mail.gmail.com>
Alex Riesen venit, vidit, dixit 25.03.2010 00:12:
Show 7 quoted lines
> On Wed, Mar 24, 2010 at 23:58, Sverre Rabbelier <srabbelier@gmail.com> wrote:
>> On Wed, Mar 24, 2010 at 23:44, Neal Kreitzinger <neal@rsss.com> wrote:
>>> Desired Solution:  configure git to display all error messages in color,
>>> e.g. red, so that the programmer does not overlook error messages.
> 
> It is considered a good behavior for a UNIX program only to display
> something if there is an error. Git just tries to follow this tradition.

Oh well... Then I presume I'm not the only one who is annoyed by "Initialized empty Git repository in ...", especially when you clone locally and that is the only response you get! I'm embracing for the response to my upcoming RFC...

Note that we also do a lot of progress messages (fetch from remotes, committing, checking out, ...), and that is why distinguishing warnings/error messages makes a lot of sense.

Show 6 quoted lines
>> That's actually something I run into as well, I am so used to git just
>> doing what I want that I don't notice the error messages when they
>> occur. If this is indeed desired (probably controlled by color.warning
>> and color.error?) it should be fairly easy to implement (see usage.c).
> 
> That said, I also like the idea. Don't forget to check for tty in the patch.
Me too :)
Michael
Previous: Alex RiesenNext: Michael J Gruber
Message 4 of 18 in “color (red) for error messages on all git commands”
  1. Neal KreitzingerMar 24, 2010
  2. Sverre RabbelierMar 24, 2010
  3. Alex RiesenMar 24, 2010
  4. Michael J GruberMar 25, 2010
  5. clone: quell the progress report from initMichael J Gruber, Mar 25, 2010
  6. Alex RiesenMar 25, 2010
  7. Michael J GruberMar 25, 2010
  8. Tilo SchwarzMar 25, 2010
  9. Junio C HamanoMar 26, 2010
  10. Nicolas PitreMar 26, 2010
  11. Junio C HamanoMar 26, 2010
  12. Junio C HamanoMar 30, 2010
  13. Michael J GruberMar 30, 2010
  14. Alex RiesenMar 30, 2010
  15. clone: quell the progress report from init and report on cloneMichael J Gruber, Apr 1, 2010
  16. Junio C HamanoApr 2, 2010
  17. Michael J GruberApr 4, 2010
  18. clone: quell the progress report from init and report on cloneMichael J Gruber, Apr 23, 2010

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.