diff options
Diffstat (limited to 'builtin/config.c')
| -rw-r--r-- | builtin/config.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/builtin/config.c b/builtin/config.c index d40fddb042..f4fccf99cb 100644 --- a/builtin/config.c +++ b/builtin/config.c @@ -217,6 +217,7 @@ static void show_config_scope(struct strbuf *buf) } static int show_all_config(const char *key_, const char *value_, + const struct config_context *ctx UNUSED, void *cb UNUSED) { if (show_origin || show_scope) { @@ -301,7 +302,8 @@ static int format_config(struct strbuf *buf, const char *key_, const char *value return 0; } -static int collect_config(const char *key_, const char *value_, void *cb) +static int collect_config(const char *key_, const char *value_, + const struct config_context *ctx UNUSED, void *cb) { struct strbuf_list *values = cb; @@ -470,6 +472,7 @@ static const char *get_colorbool_slot; static char parsed_color[COLOR_MAXLEN]; static int git_get_color_config(const char *var, const char *value, + const struct config_context *ctx UNUSED, void *cb UNUSED) { if (!strcmp(var, get_color_slot)) { @@ -503,6 +506,7 @@ static int get_colorbool_found; static int get_diff_color_found; static int get_color_ui_found; static int git_get_colorbool_config(const char *var, const char *value, + const struct config_context *ctx UNUSED, void *data UNUSED) { if (!strcmp(var, get_colorbool_slot)) @@ -561,7 +565,9 @@ struct urlmatch_current_candidate_value { struct strbuf value; }; -static int urlmatch_collect_fn(const char *var, const char *value, void *cb) +static int urlmatch_collect_fn(const char *var, const char *value, + const struct config_context *ctx UNUSED, + void *cb) { struct string_list *values = cb; struct string_list_item *item = string_list_insert(values, var); |
