From 6453f7b34864c1a639cc367f576476ee3be1456f Mon Sep 17 00:00:00 2001 From: Andreas Schwab Date: Mon, 17 Mar 2014 20:16:05 +0100 Subject: grep: add grep.fullName config variable This configuration variable sets the default for the --full-name option. Signed-off-by: Andreas Schwab Signed-off-by: Junio C Hamano --- grep.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'grep.c') diff --git a/grep.c b/grep.c index c668034739..ece04bf275 100644 --- a/grep.c +++ b/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")) -- cgit v1.3-5-g9baa