aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2025-02-12 10:08:54 -0800
committerJunio C Hamano <gitster@pobox.com>2025-02-12 10:08:55 -0800
commit39de0ffbe33fbb6498a3027207deb3a5d30ff678 (patch)
treef19be747f14fd643f97690732731e526d6a7c928 /Documentation
parent0a99ffb4d6645142e68517c59db61b7e58a4f7cc (diff)
parent4e3dd47c9d5f9dcae0a0d6c59c6676213914ac0e (diff)
downloadgit-39de0ffbe33fbb6498a3027207deb3a5d30ff678.tar.gz
Merge branch 'sc/help-autocorrect-one'
"[help] autocorrect = 1" used to be a way to say "please wait for 0.1 second after suggesting a typofix of the command name before running that command"; now it means "yes, if there is a plausible typofix for the command name, please run it immediately". * sc/help-autocorrect-one: help: interpret boolean string values for help.autocorrect
Diffstat (limited to 'Documentation')
-rw-r--r--Documentation/config/help.txt9
1 files changed, 5 insertions, 4 deletions
diff --git a/Documentation/config/help.txt b/Documentation/config/help.txt
index 610701f9a3..a4c6079af8 100644
--- a/Documentation/config/help.txt
+++ b/Documentation/config/help.txt
@@ -11,13 +11,14 @@ 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 (default): show the suggested command.
- - positive number: run the suggested command after specified
+ - 0: 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).
- - "immediate": run the suggested command immediately.
+ - "false", "off", "no", "never": don't run or show any suggested command.
- "prompt": show the suggestion and prompt for confirmation to run
the command.
- - "never": don't run or show any suggested command.
help.htmlPath::
Specify the path where the HTML documentation resides. File system paths