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

Re: [PATCH 0/1] grep: align default colors with GNU grep ones

From
Junio C Hamano <gitster@pobox.com>
Date
Dec 16, 2021, 21:59 UTC
Message-ID
<xmqqh7b88b3o.fsf@gitster.g>
In-Reply-To
<20211216115622.85506-1-lenaic@lhuard.fr>
Lénaïc Huard <lenaic@lhuard.fr> writes:
Show 10 quoted lines
> git-grep shares a lot of options with the standard grep tool.
> Like GNU grep, it has coloring options to highlight the matching text.
> And like it, it has options to customize the various colored parts.
>
> This patch updates the default git-grep colors to make them match the
> GNU grep default ones [1].
>
> It was possible to get the same result by setting the various `color.grep.<slot>`
> options, but this patch makes `git grep --color` share the same color scheme as
> `grep --color` by default without any user configuration.

I am not a huge fan of adjusting our defaults to other people's default, since it will lead do an inevitable "Why don't they adjust to match ours?" question, plus "We've been happily using the default coloring, and you suddenly changed it to something ugly. We want our color back and we do not care that now you match what GNU does".

The UI color choice is so personal, which does not help us either.

Having said that, I'll keep an eye on what others say on this thread.

Thanks.
Previous: Lénaïc HuardNext: Junio C Hamano
Message 3 of 7 in “grep: align default colors with GNU grep ones”
  1. 0/1 grep: align default colors with GNU grep onesLénaïc Huard, Dec 16, 2021
  2. 1/1 grep: align default colors with GNU grep onesLénaïc Huard, Dec 16, 2021
  3. Junio C HamanoDec 16, 2021
  4. Junio C HamanoJan 3, 2022
  5. Lénaïc HuardJan 5, 2022
  6. 0/1 grep: align default colors with GNU grep onesLénaïc Huard, Jan 5, 2022
  7. 1/1 grep: align default colors with GNU grep onesLénaïc Huard, Jan 5, 2022

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.