]> git.ipfire.org Git - thirdparty/git.git/blobdiff - builtin/grep.c
config: add ctx arg to config_fn_t
[thirdparty/git.git] / builtin / grep.c
index 76cf999d3105ffde5ee738bfd0a9594d14990dcf..757d52b94ecf19d5f34a1ce0cae03a6ba614789d 100644 (file)
@@ -290,13 +290,14 @@ static int wait_all(void)
        return hit;
 }
 
-static int grep_cmd_config(const char *var, const char *value, void *cb)
+static int grep_cmd_config(const char *var, const char *value,
+                          const struct config_context *ctx, void *cb)
 {
-       int st = grep_config(var, value, cb);
+       int st = grep_config(var, value, ctx, cb);
 
        if (git_color_config(var, value, cb) < 0)
                st = -1;
-       else if (git_default_config(var, value, cb) < 0)
+       else if (git_default_config(var, value, ctx, cb) < 0)
                st = -1;
 
        if (!strcmp(var, "grep.threads")) {