git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] help.c: help.autocorrect=prompt waits for user action

From
Bagas Sanjaya <bagasdotme@gmail.com>
Date
Aug 12, 2021, 10:52 UTC
Message-ID
<4f72cd3d-bcc7-a9b0-cc11-f0d7c5650365@gmail.com>
In-Reply-To
<pull.1012.git.1628640954160.gitgitgadget@gmail.com>
On 11/08/21 07.15, Azeem Bande-Ali via GitGitGadget wrote:
Show 22 quoted lines
>   help.autoCorrect::
>   	If git detects typos and can identify exactly one valid command similar
> -	to the error, git will automatically run the intended command after
> -	waiting a duration of time defined by this configuration value in
> -	deciseconds (0.1 sec).  If this value is 0, the suggested corrections
> -	will be shown, but not executed. If it is a negative integer, or
> -	"immediate", the suggested command
> -	is run immediately. If "never", suggestions are not shown at all. The
> -	default value is zero.
> +	to the error, git will try to suggest the correct command or even
> +	run the intended command.
> +	If this config value is 0, then the suggested command will be shown.
> +	If it is positive, the suggested command will automatically
> +	run after waiting for that many deciseconds (0.1 sec).
> +	If it is "immediate", the suggested command will be
> +	run immediately.
> +	If it is "prompt", then the user will be shown the
> +	suggestion and will be prompted for confirmation before the command
> +	is run.
> +	If it is "never", then no suggestion will be shown and no command
> +	will be run.
> +	0 is the default value for this config.
I think it's better to use bullet lists, e.g.:
```
If git detects typos and ...
<skip>
... git will try to suggest the correct command or even run the intended 
command. Possible values are:
     - 0 (default): show the suggested command
     - positive number: run the suggested command after specified 
deciseconds (0.1 sec).
     - "immediate": run the suggested command immediately
     - "prompt": show the suggestion and prompt for confirmation to run 
the command
     - "never": don't show any suggestions nor run them
```
-- 
An old man doll... just what I always wanted! - Clara
Previous: Azeem Bande-Ali via GitGitGadgetNext: Azeem Bande-Ali
Message 2 of 12 in “help.c: help.autocorrect=prompt waits for user action”
  1. help.c: help.autocorrect=prompt waits for user actionAzeem Bande-Ali via GitGitGadget, Aug 11, 2021
  2. Bagas SanjayaAug 12, 2021
  3. Azeem Bande-AliAug 14, 2021
  4. Junio C HamanoAug 12, 2021
  5. Azeem Bande-AliAug 14, 2021
  6. help.c: help.autocorrect=prompt waits for user actionAzeem Bande-Ali via GitGitGadget, Aug 14, 2021
  7. Bagas SanjayaAug 14, 2021
  8. Junio C HamanoAug 14, 2021
  9. Azeem Bande-AliAug 14, 2021
  10. Johannes SchindelinAug 16, 2021
  11. help.c: help.autocorrect=prompt waits for user actionAzeem Bande-Ali via GitGitGadget, Aug 15, 2021
  12. Junio C HamanoSep 8, 2021

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.