diff options
author | Andreas Schwab <schwab@linux-m68k.org> | 2014-03-17 20:16:05 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2014-03-20 12:38:00 -0700 |
commit | 6453f7b34864c1a639cc367f576476ee3be1456f (patch) | |
tree | 4df12bd5d677db271094c0676d228cdacc155665 /grep.c | |
parent | 00eda23228acb68c85a76f977f4e59f82189ce3f (diff) | |
download | git-6453f7b34864c1a639cc367f576476ee3be1456f.tar.gz |
grep: add grep.fullName config variableas/grep-fullname-config
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>
Diffstat (limited to 'grep.c')
-rw-r--r-- | grep.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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")) |