]> git.ipfire.org Git - thirdparty/git.git/blobdiff - grep.c
grep: add grep.fullName config variable
[thirdparty/git.git] / grep.c
diff --git a/grep.c b/grep.c
index c668034739258d0cd1e7108357da80d44891221f..ece04bf2756ec6e2555a7569dacb8c66931eff7d 100644 (file)
--- 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"))