Skip to content

Commit c0450ca

Browse files
committed
Merge branch 'lh/use-gnu-color-in-grep'
The color palette used by "git grep" has been updated to match that of GNU grep. * lh/use-gnu-color-in-grep: grep: align default colors with GNU grep ones
2 parents 0669bdf + b83f99c commit c0450ca

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

grep.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@ static struct grep_opt grep_defaults = {
2626
.pattern_type_option = GREP_PATTERN_TYPE_UNSPECIFIED,
2727
.colors = {
2828
[GREP_COLOR_CONTEXT] = "",
29-
[GREP_COLOR_FILENAME] = "",
29+
[GREP_COLOR_FILENAME] = GIT_COLOR_MAGENTA,
3030
[GREP_COLOR_FUNCTION] = "",
31-
[GREP_COLOR_LINENO] = "",
32-
[GREP_COLOR_COLUMNNO] = "",
31+
[GREP_COLOR_LINENO] = GIT_COLOR_GREEN,
32+
[GREP_COLOR_COLUMNNO] = GIT_COLOR_GREEN,
3333
[GREP_COLOR_MATCH_CONTEXT] = GIT_COLOR_BOLD_RED,
3434
[GREP_COLOR_MATCH_SELECTED] = GIT_COLOR_BOLD_RED,
3535
[GREP_COLOR_SELECTED] = "",

0 commit comments

Comments
 (0)