diff options
author | Jonathan Tan <jonathantanmy@google.com> | 2022-01-18 09:47:39 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2022-01-18 13:55:53 -0800 |
commit | ed69e11b89af41c112ab80f5278a2b29c6f5f5b3 (patch) | |
tree | 4cb3aa28f7e374ffc1a35533721a3a0406113636 /config.c | |
parent | abe6bb3905392d5eb6b01fa6e54d7e784e0522aa (diff) | |
download | git-ed69e11b89af41c112ab80f5278a2b29c6f5f5b3.tar.gz |
config: make git_config_include() static
It is not used from outside the file in which it is declared.
Signed-off-by: Jonathan Tan <jonathantanmy@google.com>
Acked-by: Elijah Newren <newren@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'config.c')
-rw-r--r-- | config.c | 12 |
1 files changed, 11 insertions, 1 deletions
@@ -120,6 +120,16 @@ static long config_buf_ftell(struct config_source *conf) return conf->u.buf.pos; } +struct config_include_data { + int depth; + config_fn_t fn; + void *data; + const struct config_options *opts; +}; +#define CONFIG_INCLUDE_INIT { 0 } + +static int git_config_include(const char *var, const char *value, void *data); + #define MAX_INCLUDE_DEPTH 10 static const char include_depth_advice[] = N_( "exceeded maximum include depth (%d) while including\n" @@ -309,7 +319,7 @@ static int include_condition_is_true(const struct config_options *opts, return 0; } -int git_config_include(const char *var, const char *value, void *data) +static int git_config_include(const char *var, const char *value, void *data) { struct config_include_data *inc = data; const char *cond, *key; |