threads / discuss / 20146

Is it possible to configure the color of git diff outpyut

Subject: Is it possible to configure the color of git diff outpyut

## tl;dr

3 messages between Jul 17, 2009 and Jul 17, 2009.

replies: 2people: 3as markdown or json

n179911· Jul 17, 2009, 16:35 UTC · lore
Hi,

When I do git diff, for example, it has color output (red for "-" and green for "+"). Can you please tell me how can I change the color used?

Thank you.
Junio C Hamano· Jul 17, 2009, 16:51 UTC · re: n179911 · lore

Re: Is it possible to configure the color of git diff outpyut

n179911 <n179911@gmail.com> writes:
> When I do git diff, for example, it has color output (red for "-" and
> green for "+").
> Can you please tell me how can I change the color used?

Can you please tell us what resources you consulted to figure this out yourself before asking your question on this list? I am not complaining; I am trying to see how a "typical" user finds information on our software, so that we can potentially optimize our documentation set to make it easier to find answers to common questions.

The answer to your question is found by looking for color.diff.<slot> in "git help config".

Mike Hommey· Jul 17, 2009, 17:45 UTC · re: Junio C Hamano · lore

Re: Is it possible to configure the color of git diff outpyut

On Fri, Jul 17, 2009 at 09:51:46AM -0700, Junio C Hamano wrote:
Show 11 quoted lines
> n179911 <n179911@gmail.com> writes:
> 
> > When I do git diff, for example, it has color output (red for "-" and
> > green for "+").
> > Can you please tell me how can I change the color used?
> 
> Can you please tell us what resources you consulted to figure this out
> yourself before asking your question on this list?  I am not complaining;
> I am trying to see how a "typical" user finds information on our software,
> so that we can potentially optimize our documentation set to make it
> easier to find answers to common questions.

I think it would make sense to have reference to configuration items that have a special impact on commands in their manual pages. Or at least a "See Also" section mentioning "git-config".

Mike

← back to recent threads