config: extract function to parse config pairs
authorPatrick Steinhardt <redacted>
Tue, 12 Jan 2021 12:26:54 +0000 (13:26 +0100)
committerJunio C Hamano <redacted>
Tue, 12 Jan 2021 20:03:18 +0000 (12:03 -0800)
commitb342ae61b3658ed4c062a27f8e46ea79c38d4197
tree637ec6550f3c4b0caa5bdb3152fd4e217dbcaf62
parent13c44953fb0b396d3594b4a712f956ab3a48169e
config: extract function to parse config pairs

The function `git_config_parse_parameter` is responsible for parsing a
`foo.bar=baz`-formatted configuration key, sanitizing the key and then
processing it via the given callback function. Given that we're about to
add a second user which is going to process keys which already has keys
and values separated, this commit extracts a function
`config_parse_pair` which only does the sanitization and processing
part as a preparatory step.

Signed-off-by: Patrick Steinhardt <redacted>
Signed-off-by: Junio C Hamano <redacted>
config.c
git clone https://git.99rst.org/PROJECT