]> git.ipfire.org Git - thirdparty/git.git/commit - config.h
config: make scope_name non-static and rename it
authorMatthew Rogers <mattr94@gmail.com>
Mon, 10 Feb 2020 00:30:53 +0000 (00:30 +0000)
committerJunio C Hamano <gitster@pobox.com>
Mon, 10 Feb 2020 18:32:18 +0000 (10:32 -0800)
commita5cb4204b63b57e99ae3a44f23a7945f146fe078
treee4e539ced905a7164614d498efe6b41d7ee3bf9c
parent417be08d02ef5df72996972e105d386028c34653
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>
config.c
config.h
t/helper/test-config.c