Thread (5 messages) flat view 5 messages, 3 authors, 2016-06-15

Re: [PATCH/RFC] "color.diff = true" is not "always" anymore.

From: Jeff King <hidden>
Date: 2016-06-15 22:43:54

Possibly related (same subject, not in this thread)

On Tue, Nov 27, 2007 at 11:26:56PM -0800, Junio C Hamano wrote:
Too many people got burned by setting color.diff and color.status to
true when they really should have set it to "auto".

This makes only "always" to do the unconditional colorization, and
change the meaning of "true" to the same as "auto": colorize only when
we are talking to a terminal.
I think this is a good change. However, there needs to be a matching
change for all scripts which read the color.* variables (git-svn is the
only one now, I think, but Dan's git-add--interactive patch does the
same thing).

It would be nice to have a "git config --colorbool" option, but it has
the unfortunate problem that the stdout of "git config" is piped back to
the caller, so the isatty check is meaningless (and the "pager in use"
is similarly tricky). Perhaps it should go in Git.pm, so it at least
only needs to be written once.

-Peff
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help