]> git.ipfire.org Git - thirdparty/git.git/blobdiff - builtin/commit-graph.c
config: pass kvi to die_bad_number()
[thirdparty/git.git] / builtin / commit-graph.c
index 1185c49239ab7af942111179005e7431563991d7..b071c5ab646f1eeafb8769235c7d366bb894a454 100644 (file)
@@ -186,11 +186,11 @@ static int write_option_max_new_filters(const struct option *opt,
 }
 
 static int git_commit_graph_write_config(const char *var, const char *value,
-                                        const struct config_context *ctx UNUSED,
+                                        const struct config_context *ctx,
                                         void *cb UNUSED)
 {
        if (!strcmp(var, "commitgraph.maxnewfilters"))
-               write_opts.max_new_filters = git_config_int(var, value);
+               write_opts.max_new_filters = git_config_int(var, value, ctx->kvi);
        /*
         * No need to fall-back to 'git_default_config', since this was already
         * called in 'cmd_commit_graph()'.