]> Kevux Git Server - rit/commit
Merge branch 'hn/config-typo-advice'
authorJunio C Hamano <gitster@pobox.com>
Mon, 15 Jun 2026 14:41:59 +0000 (07:41 -0700)
committerJunio C Hamano <gitster@pobox.com>
Mon, 15 Jun 2026 14:41:59 +0000 (07:41 -0700)
commitcfe668204294fe5ad68b2cedc7892fc56d9e0451
tree1b358396744ef205a6f795efb5661bcffe395f69
parent8b0f02bbbb0798d739f361c55e69e741c04877f5
parent03c29e2e980da7595cbade29e02616d2de2c42f8
Merge branch 'hn/config-typo-advice'

"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
config.c
config.h
t/t1300-config.sh