diff options
author | Patrick Steinhardt <ps@pks.im> | 2021-01-12 13:26:54 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2021-01-12 12:03:18 -0800 |
commit | b342ae61b3658ed4c062a27f8e46ea79c38d4197 (patch) | |
tree | 637ec6550f3c4b0caa5bdb3152fd4e217dbcaf62 /t/t2072-restore-pathspec-file.sh | |
parent | quote: make sq_dequote_step() a public function (diff) | |
download | tgif-b342ae61b3658ed4c062a27f8e46ea79c38d4197.tar.xz |
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 <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t2072-restore-pathspec-file.sh')
0 files changed, 0 insertions, 0 deletions