]> git.ipfire.org Git - thirdparty/git.git/commit
help: show the suggested command when help.autocorrect is false
authorDavid Aguilar <davvid@gmail.com>
Sat, 1 Feb 2025 21:33:18 +0000 (13:33 -0800)
committerJunio C Hamano <gitster@pobox.com>
Mon, 3 Feb 2025 23:22:03 +0000 (15:22 -0800)
commite21bf2c4314840dba4f45c6e7bbc96a6fc0a8f61
tree9aacc42855bb7000f1d7413b1c1fc81c9f1e0e6a
parenta0fc18f0427fa9e4bd04cae60bee346b6ae78663
help: show the suggested command when help.autocorrect is false

Make the handling of false boolean values for help.autocorrect
consistent with the handling of value 0 by showing the suggested
commands but not running them.

Suggested-by: Junio C Hamano <gitster@pobox.com>
Signed-off-by: David Aguilar <davvid@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/config/help.txt
help.c
t/t9003-help-autocorrect.sh