config: mark otherwise unused function as file-scope static

git_configset_get_pathname() is only used once inside config.c; we do not have to expose it as a public function. Signed-off-by: Junio C Hamano <gitster@pobox.com>

Junio C Hamano committed Nov 20, 2025 at 11:32 UTC 770afe443784b3ec2c72d68aa509e48064942348
2 files changed +1 -2
config.c
+1 -1
@@ -1954,7 +1954,7 @@ int git_configset_get_maybe_bool(struct config_set *set, const char *key, int *d
1954 return 1;
1955 }
1956
1957 -int git_configset_get_pathname(struct config_set *set, const char *key, char **dest)
1957 +static int git_configset_get_pathname(struct config_set *set, const char *key, char **dest)
1958 {
1959 const char *value;
1960 if (!git_configset_get_value(set, key, &value, NULL))
config.h
-1
@@ -564,7 +564,6 @@ int git_configset_get_ulong(struct config_set *cs, const char *key, unsigned lon
564 int git_configset_get_bool(struct config_set *cs, const char *key, int *dest);
565 int git_configset_get_bool_or_int(struct config_set *cs, const char *key, int *is_bool, int *dest);
566 int git_configset_get_maybe_bool(struct config_set *cs, const char *key, int *dest);
567 -int git_configset_get_pathname(struct config_set *cs, const char *key, char **dest);
567
568 /**
569 * Run only the discover part of the repo_config_get_*() functions