]> git.ipfire.org Git - thirdparty/git.git/commit
config: add git_config_key_is_valid() for quiet validation
authorHarald Nordgren <haraldnordgren@gmail.com>
Tue, 2 Jun 2026 18:43:27 +0000 (18:43 +0000)
committerJunio C Hamano <gitster@pobox.com>
Tue, 2 Jun 2026 23:39:54 +0000 (08:39 +0900)
commit9b03e2790af03bebc9bc084cfc921492e6d5ca70
tree080eab4b61027b35a34129aa463fb4b1f0939a1e
parent94f057755b7941b321fd11fec1b2e3ca5313a4e0
config: add git_config_key_is_valid() for quiet validation

Move the body of git_config_parse_key() into a static helper
do_parse_config_key() that takes a "quiet" flag and treats
store_key as optional.  git_config_parse_key() becomes a thin
wrapper.

Add git_config_key_is_valid() for callers that only need to
know whether a key is well-formed.

Signed-off-by: Harald Nordgren <haraldnordgren@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
config.c
config.h