1
0
mirror of https://github.com/git/git.git synced 2024-11-18 23:13:58 +01:00

grep: add grep.fullName config variable

This configuration variable sets the default for the --full-name option.

Signed-off-by: Andreas Schwab <schwab@linux-m68k.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
Andreas Schwab 2014-03-17 20:16:05 +01:00 committed by Junio C Hamano
parent 00eda23228
commit 6453f7b348
2 changed files with 8 additions and 0 deletions

@ -53,6 +53,9 @@ grep.extendedRegexp::
option is ignored when the 'grep.patternType' option is set to a value
other than 'default'.
grep.fullName::
If set to true, enable '--full-name' option by default.
OPTIONS
-------

5
grep.c

@ -86,6 +86,11 @@ int grep_config(const char *var, const char *value, void *cb)
return 0;
}
if (!strcmp(var, "grep.fullname")) {
opt->relative = !git_config_bool(var, value);
return 0;
}
if (!strcmp(var, "color.grep"))
opt->color = git_config_colorbool(var, value);
else if (!strcmp(var, "color.grep.context"))