git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/1] grep: align default colors with GNU grep ones
@ 2021-12-16 11:56 Lénaïc Huard
  2021-12-16 11:56 ` [PATCH 1/1] " Lénaïc Huard
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Lénaïc Huard @ 2021-12-16 11:56 UTC (permalink / raw)
  To: git; +Cc: Junio C Hamano, Martin Ågren, Lénaïc Huard

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.

[1] https://www.man7.org/linux/man-pages/man1/grep.1.html#ENVIRONMENT

Lénaïc Huard (1):
  grep: align default colors with GNU grep ones

 grep.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

-- 
2.34.1


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2022-01-05  8:21 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-12-16 11:56 [PATCH 0/1] grep: align default colors with GNU grep ones Lénaïc Huard
2021-12-16 11:56 ` [PATCH 1/1] " Lénaïc Huard
2021-12-16 21:59 ` [PATCH 0/1] " Junio C Hamano
2022-01-03 22:40   ` Junio C Hamano
2022-01-05  8:21     ` Lénaïc Huard
2022-01-05  8:18 ` [PATCH v2 " Lénaïc Huard
2022-01-05  8:18   ` [PATCH v2 1/1] " Lénaïc Huard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).