]> git.ipfire.org Git - thirdparty/git.git/commitdiff
Merge branch 'hn/config-typo-advice' into seen
authorJunio C Hamano <gitster@pobox.com>
Wed, 3 Jun 2026 23:14:08 +0000 (08:14 +0900)
committerJunio C Hamano <gitster@pobox.com>
Wed, 3 Jun 2026 23:14:08 +0000 (08:14 +0900)
"git config foo.bar=baz" is not likely to be a request to read the
value of such a variable with '=' in its name; rather it is plausible
that the user meant "git config set foo.bar baz".  Give advice when
giving an error message.

* hn/config-typo-advice:
  config: improve diagnostic for "set" with missing value
  config: add git_config_key_is_valid() for quiet validation

1  2 
config.c
config.h
t/t1300-config.sh

diff --cc config.c
Simple merge
diff --cc config.h
Simple merge
Simple merge