config: move a few helper functions up
commitee98df3fa41d83f037b96cb11dc72181816920c7
authorJunio C Hamano <gitster@pobox.com>
Thu, 23 Feb 2017 22:44:07 +0000 (23 14:44 -0800)
committerJunio C Hamano <gitster@pobox.com>
Thu, 23 Feb 2017 22:44:07 +0000 (23 14:44 -0800)
treed1a022a4ac367651e23ab1f138dd8e12dd968d23
parentc3808ca6982b0ad7ee9b87eca9b50b9a24ec08b0
config: move a few helper functions up

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>
config.c