mirror of
https://github.com/git/git.git
synced 2025-12-12 20:36:24 +01:00
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>
This commit is contained in:
2
config.c
2
config.c
@@ -1954,7 +1954,7 @@ int git_configset_get_maybe_bool(struct config_set *set, const char *key, int *d
|
|||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
int git_configset_get_pathname(struct config_set *set, const char *key, char **dest)
|
static int git_configset_get_pathname(struct config_set *set, const char *key, char **dest)
|
||||||
{
|
{
|
||||||
const char *value;
|
const char *value;
|
||||||
if (!git_configset_get_value(set, key, &value, NULL))
|
if (!git_configset_get_value(set, key, &value, NULL))
|
||||||
|
|||||||
1
config.h
1
config.h
@@ -564,7 +564,6 @@ int git_configset_get_ulong(struct config_set *cs, const char *key, unsigned lon
|
|||||||
int git_configset_get_bool(struct config_set *cs, const char *key, int *dest);
|
int git_configset_get_bool(struct config_set *cs, const char *key, int *dest);
|
||||||
int git_configset_get_bool_or_int(struct config_set *cs, const char *key, int *is_bool, int *dest);
|
int git_configset_get_bool_or_int(struct config_set *cs, const char *key, int *is_bool, int *dest);
|
||||||
int git_configset_get_maybe_bool(struct config_set *cs, const char *key, int *dest);
|
int git_configset_get_maybe_bool(struct config_set *cs, const char *key, int *dest);
|
||||||
int git_configset_get_pathname(struct config_set *cs, const char *key, char **dest);
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Run only the discover part of the repo_config_get_*() functions
|
* Run only the discover part of the repo_config_get_*() functions
|
||||||
|
|||||||
Reference in New Issue
Block a user