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

Re: git diff-index ignores color config

From
Junio C Hamano <gitster@pobox.com>
Date
Apr 26, 2011, 17:42 UTC
Message-ID
<7voc3sewpg.fsf@alter.siamese.dyndns.org>
In-Reply-To
<1303830261.3387.21.camel@dhcp-141.kontor.deklomp.se>
Elias Persson <delreich@takeit.se> writes:
Show 6 quoted lines
> Having color.ui (and/or color.diff) set to auto, doing
>
>    git diff-index --check <some refspec>
>
> on a set with e.g. trailing whitespace does not produce colored
> output.

Isn't that very much on purpose? diff-{index,tree,files} plumbings should not be affected by UI related configuration variables.

Previous: Elias PerssonNext: Elias Persson
Message 2 of 9 in “git diff-index ignores color config”
  1. Elias PerssonApr 26, 2011
  2. Junio C HamanoApr 26, 2011
  3. Elias PerssonApr 27, 2011
  4. config.txt,diff-options.txt: porcelain vs. plumbing for color.diffMichael J Gruber, Apr 27, 2011
  5. Jonathan NiederApr 27, 2011
  6. Junio C HamanoApr 27, 2011
  7. Junio C HamanoApr 27, 2011
  8. Jonathan NiederApr 27, 2011
  9. Michael J GruberApr 28, 2011

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.