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

Re: [PATCH] Color support for "git-add -i"

From
Wincent Colaiuta <win@wincent.com>
Date
Dec 5, 2007, 13:52 UTC
Message-ID
<D72C7087-61D9-4AEC-AA7F-52A1268F1EA8@wincent.com>
In-Reply-To
<475697BC.2090701@viscovery.net>
El 5/12/2007, a las 13:21, Johannes Sixt escribió:
Show 11 quoted lines
> Junio C Hamano schrieb:
>> +color.interactive::
>> +	When true (or `always`), always use colors in `git add
>> +	--interactive`.  When false (or `never`), never.  When set to
>> +	`auto`, use colors only when the output is to the
>> +	terminal. Defaults to false.
>
> Any particular reason why color.interactive = true should be  
> different from
> color.diff = true? See 57f2b842 ("color.diff = true" is not "always"  
> anymore)

I wonder when you'd ever run an interactive command and not be in a terminal? ie. it doesn't make much sense to ever do "git add -i > foo", except perhaps from the test suite.

Notwithstanding, consistency for the sake of consistency is probably a good thing.

Cheers, Wincent

Previous: Johannes SixtNext: Junio C Hamano
Message 3 of 18 in “Color support for "git-add -i"”
  1. Color support for "git-add -i"Junio C Hamano, Dec 5, 2007
  2. Johannes SixtDec 5, 2007
  3. Wincent ColaiutaDec 5, 2007
  4. Junio C HamanoDec 5, 2007
  5. 1/3 Documentation: color.* = true means "auto"Junio C Hamano, Dec 6, 2007
  6. 2/3 git config --get-colorboolJunio C Hamano, Dec 6, 2007
  7. 3/3 Color support for "git-add -i"Junio C Hamano, Dec 6, 2007
  8. 0/3 Reroll colorized "git add -i"Junio C Hamano, Dec 6, 2007
  9. Jeff KingDec 6, 2007
  10. Wincent ColaiutaDec 6, 2007
  11. Junio C HamanoDec 6, 2007
  12. Wincent ColaiutaDec 7, 2007
  13. Jeff KingDec 6, 2007
  14. Jeff KingDec 6, 2007
  15. Junio C HamanoDec 6, 2007
  16. Jeff KingDec 6, 2007
  17. Eric WongDec 6, 2007
  18. Wincent ColaiutaDec 5, 2007

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.