diff options
author | Glen Choo <chooglen@google.com> | 2023-06-28 21:26:20 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2023-06-28 23:06:38 +0200 |
commit | 97eeeea2dc069a1fcb03db99ef3810ebe3056188 (patch) | |
tree | 44d42f1a7533469948e7d5f181a34198ef109123 /color.c | |
parent | The fourth batch (diff) | |
download | git-97eeeea2dc069a1fcb03db99ef3810ebe3056188.tar.xz git-97eeeea2dc069a1fcb03db99ef3810ebe3056188.zip |
config: inline git_color_default_config
git_color_default_config() is a shorthand for calling two other config
callbacks. There are no other non-static functions that do this and it
will complicate our refactoring of config_fn_t so inline it instead.
Signed-off-by: Glen Choo <chooglen@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'color.c')
-rw-r--r-- | color.c | 8 |
1 files changed, 0 insertions, 8 deletions
@@ -430,14 +430,6 @@ int git_color_config(const char *var, const char *value, void *cb UNUSED) return 0; } -int git_color_default_config(const char *var, const char *value, void *cb) -{ - if (git_color_config(var, value, cb) < 0) - return -1; - - return git_default_config(var, value, cb); -} - void color_print_strbuf(FILE *fp, const char *color, const struct strbuf *sb) { if (*color) |