config: move a few helper functions up
authorJunio C Hamano <gitster@pobox.com>
Thu, 23 Feb 2017 22:44:07 +0000 (14:44 -0800)
committerJunio C Hamano <gitster@pobox.com>
Thu, 23 Feb 2017 22:44:07 +0000 (14:44 -0800)
git_config_parse_key() implements the validation and downcasing of
<section> and <variable> in "<section>[.<subsection>].<variable>"
configuration variable name. Move it (and helpers it uses) a bit up
so that it can be used by git_config_parse_parameter(), which is
used to check configuration settings that are given on the command
line (i.e. "git -c VAR=VAL cmd"), in a later patch.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
No differences found