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

Re: [PATCH] grep: don't support "grep.color"-like config options

From
Markus Heidelberg <markus.heidelberg@web.de>
Date
Apr 21, 2009, 00:11 UTC
Message-ID
<200904210211.52818.markus.heidelberg@web.de>
In-Reply-To
<alpine.DEB.1.00.0904210145260.10279@pacific.mpi-cbg.de>
Johannes Schindelin, 21.04.2009:
Show 10 quoted lines
> Hi,
> 
> On Tue, 21 Apr 2009, Markus Heidelberg wrote:
> 
> > color.grep and color.grep.* is the official and documented way to 
> > highlight grep matches. Comparable options like diff.color.* and 
> > status.color.* exist for backward compatibility reasons only and are not 
> > documented any more.
> 
> But is it really so bad that we have to possibly break existing setups?

Given that they have never been documented since introduction of "grep --color" in March, wouldn't it be pure luck from a users' POV, that they even worked, after the user accidentally typed grep.color instead of color.grep with git-config? Should we then also introduce branch.color afterwards?

Also, colorized grep isn't yet released, people currently using grep.color (and I guess they are very few, if any) normally are compiling git on their own and shouldn't have problems with it disappearing.

> The cost of keeping them is really small IMHO.
Maybe, but it's always nice to keep things simpler and cleaner.
Markus
Previous: Johannes SchindelinNext: Junio C Hamano
Message 3 of 6 in “grep: don't support "grep.color"-like config options”
  1. grep: don't support "grep.color"-like config optionsMarkus Heidelberg, Apr 20, 2009
  2. Johannes SchindelinApr 20, 2009
  3. Markus HeidelbergApr 21, 2009
  4. Junio C HamanoApr 21, 2009
  5. Markus HeidelbergApr 21, 2009
  6. René ScharfeApr 21, 2009

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.