diff options
Diffstat (limited to 'builtin-add.c')
-rw-r--r-- | builtin-add.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/builtin-add.c b/builtin-add.c index 6e4e645cb7..1da22eec91 100644 --- a/builtin-add.c +++ b/builtin-add.c @@ -207,13 +207,13 @@ static struct option builtin_add_options[] = { OPT_END(), }; -static int add_config(const char *var, const char *value) +static int add_config(const char *var, const char *value, void *cb) { if (!strcasecmp(var, "add.ignore-errors")) { ignore_add_errors = git_config_bool(var, value); return 0; } - return git_default_config(var, value); + return git_default_config(var, value, cb); } int cmd_add(int argc, const char **argv, const char *prefix) @@ -231,7 +231,7 @@ int cmd_add(int argc, const char **argv, const char *prefix) if (add_interactive) exit(interactive_add(argc, argv, prefix)); - git_config(add_config); + git_config(add_config, NULL); newfd = hold_locked_index(&lock_file, 1); |