]> git.ipfire.org Git - thirdparty/git.git/commit
builtin/config: display subcommand help
authorPatrick Steinhardt <ps@pks.im>
Mon, 6 May 2024 08:56:57 +0000 (10:56 +0200)
committerJunio C Hamano <gitster@pobox.com>
Mon, 6 May 2024 18:50:10 +0000 (11:50 -0700)
commit7b91d310ce21aa663e025c8955c46c49ab037a41
tree778a575c6f07740c2f437ba8ff3a9c594c47c314
parent3cbace5ee0e1d9a959846241ca73d545b8f70878
builtin/config: display subcommand help

Until now, `git config -h` would have printed help for the old-style
syntax. Now that all modes have proper subcommands though it is
preferable to instead display the subcommand help.

Drop the `NO_INTERNAL_HELP` flag to do so. While at it, drop the help
mismatch in t0450 and add the `--get-colorbool` option to the usage such
that git-config(1)'s synopsis and `git config -h` match.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/config.c
t/t0450/txt-help-mismatches