From 97eeeea2dc069a1fcb03db99ef3810ebe3056188 Mon Sep 17 00:00:00 2001 From: Glen Choo Date: Wed, 28 Jun 2023 19:26:20 +0000 Subject: 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 Signed-off-by: Junio C Hamano --- color.h | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'color.h') diff --git a/color.h b/color.h index cfc8f841b2..bb28343be2 100644 --- a/color.h +++ b/color.h @@ -88,12 +88,8 @@ extern const int column_colors_ansi_max; */ extern int color_stdout_is_tty; -/* - * Use the first one if you need only color config; the second is a convenience - * if you are just going to change to git_default_config, too. - */ +/* Parse color config. */ int git_color_config(const char *var, const char *value, void *cb); -int git_color_default_config(const char *var, const char *value, void *cb); /* * Parse a config option, which can be a boolean or one of -- cgit v1.2.3