Re: color (red) for error messages on all git commands
- From
Alex Riesen <raa.lkml@gmail.com>
- Date
- Mar 24, 2010, 23:12 UTC
- Message-ID
- <81b0412b1003241612m41f6ae2ctaa5b89ed37b58da2@mail.gmail.com>
- In-Reply-To
- <fabb9a1e1003241558t4c4c5cf8t3a7d9b9856937c4f@mail.gmail.com>
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.
> 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.