aboutsummaryrefslogtreecommitdiff
path: root/Documentation
diff options
context:
space:
mode:
authorDavid Aguilar <davvid@gmail.com>2025-02-01 13:33:18 -0800
committerJunio C Hamano <gitster@pobox.com>2025-02-03 15:22:03 -0800
commite21bf2c4314840dba4f45c6e7bbc96a6fc0a8f61 (patch)
tree9aacc42855bb7000f1d7413b1c1fc81c9f1e0e6a /Documentation
parenta0fc18f0427fa9e4bd04cae60bee346b6ae78663 (diff)
downloadgit-e21bf2c4314840dba4f45c6e7bbc96a6fc0a8f61.tar.xz
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>
Diffstat (limited to 'Documentation')
-rw-r--r--Documentation/config/help.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/Documentation/config/help.txt b/Documentation/config/help.txt
index a4c6079af8..676ba3a55f 100644
--- a/Documentation/config/help.txt
+++ b/Documentation/config/help.txt
@@ -11,12 +11,12 @@ help.autoCorrect::
If git detects typos and can identify exactly one valid command similar
to the error, git will try to suggest the correct command or even
run the suggestion automatically. Possible config values are:
- - 0: show the suggested command (default).
+ - 0, "false", "off", "no": show the suggested command (default).
- 1, "true", "on", "yes", "immediate": run the suggested command
immediately.
- positive number > 1: run the suggested command after specified
deciseconds (0.1 sec).
- - "false", "off", "no", "never": don't run or show any suggested command.
+ - "never": don't run or show any suggested command.
- "prompt": show the suggestion and prompt for confirmation to run
the command.