diff options
author | Matthew Rogers <mattr94@gmail.com> | 2020-02-10 03:30:53 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2020-02-10 21:32:18 +0300 |
commit | a5cb4204b63b57e99ae3a44f23a7945f146fe078 (patch) | |
tree | e4e539ced905a7164614d498efe6b41d7ee3bf9c /config.h | |
parent | 417be08d02ef5df72996972e105d386028c34653 (diff) |
config: make scope_name non-static and rename it
To prepare for the upcoming --show-scope option, we require the ability
to convert a config_scope enum to a string. As this was originally
implemented as a static function 'scope_name()' in
t/helper/test-config.c, we expose it via config.h and give it a less
ambiguous name 'config_scope_name()'
Signed-off-by: Matthew Rogers <mattr94@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'config.h')
-rw-r--r-- | config.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -301,6 +301,7 @@ enum config_scope { CONFIG_SCOPE_REPO, CONFIG_SCOPE_CMDLINE, }; +const char *config_scope_name(enum config_scope scope); enum config_scope current_config_scope(void); const char *current_config_origin_type(void); |