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

Re: lh/use-gnu-color-in-grep, was Re: What's cooking in git.git (Jan 2022, #01; Mon, 3)

From
Junio C Hamano <gitster@pobox.com>
Date
Jan 4, 2022, 20:11 UTC
Message-ID
<xmqqbl0rcld1.fsf@gitster.g>
In-Reply-To
<25d00bcb-3345-c221-6a38-593f23f942f3@gmail.com>
Philippe Blain <levraiphilippeblain@gmail.com> writes:
Show 9 quoted lines
>> FWIW I am in favor of adjusting Git's `grep` colors to GNU's
>> version. From
>> the users' perspective, it provides more consistency and less unexpected
>> surprises.
>
> For what it's worth, I'm also in favor of that change. It's been
> in my todo list of possible enhancements for a little while. I
> agree with Dscho that it's more consistent for users to have the
> same default colors as GNU grep.

I am not a huge fan of adjusting our defaults to other people's default, since they can match ours to "have the same default", if they wanted to. Also we are risking complaints from those who would say "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".

But it seems that I won't have to be the one who need to field such complaints, and instead we have at least two well-known people in the list who volunteered for the role, so let's take it as-is.

Previous: Philippe BlainNext: Taylor Blau
Message 6 of 8 in “What's cooking in git.git (Jan 2022, #01; Mon, 3)”
  1. Junio C HamanoJan 4, 2022
  2. jl/subtree-check-parents-argument-passing-fix, was Re: What's cooking in git.git (Jan 2022, #01; Mon, 3)Johannes Schindelin, Jan 4, 2022
  3. Junio C HamanoJan 4, 2022
  4. lh/use-gnu-color-in-grep, was Re: What's cooking in git.git (Jan 2022, #01; Mon, 3)Johannes Schindelin, Jan 4, 2022
  5. Philippe BlainJan 4, 2022
  6. Junio C HamanoJan 4, 2022
  7. tb/midx-bitmap-corruption-fix (was: What's cooking in git.git (Jan 2022, #01; Mon, 3))Taylor Blau, Jan 4, 2022
  8. Junio C HamanoJan 4, 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.