From: Bagas Sanjaya <bagasdotme@gmail.com>
To: Azeem Bande-Ali via GitGitGadget <gitgitgadget@gmail.com>,
git@vger.kernel.org
Cc: David Barr <b@rr-dav.id.au>,
Azeem Bande-Ali <A.BandeAli@gmail.com>,
Azeem Bande-Ali <me@azeemba.com>
Subject: Re: [PATCH] help.c: help.autocorrect=prompt waits for user action
Date: Thu, 12 Aug 2021 17:52:08 +0700 [thread overview]
Message-ID: <4f72cd3d-bcc7-a9b0-cc11-f0d7c5650365@gmail.com> (raw)
In-Reply-To: <pull.1012.git.1628640954160.gitgitgadget@gmail.com>
On 11/08/21 07.15, Azeem Bande-Ali via GitGitGadget wrote:
> 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
next prev parent reply other threads:[~2021-08-12 10:52 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-08-11 0:15 [PATCH] help.c: help.autocorrect=prompt waits for user action Azeem Bande-Ali via GitGitGadget
2021-08-12 10:52 ` Bagas Sanjaya [this message]
2021-08-14 2:57 ` Azeem Bande-Ali
2021-08-12 19:37 ` Junio C Hamano
2021-08-14 3:07 ` Azeem Bande-Ali
2021-08-14 5:11 ` [PATCH v2] " Azeem Bande-Ali via GitGitGadget
2021-08-14 5:50 ` Bagas Sanjaya
2021-08-14 18:20 ` Junio C Hamano
2021-08-14 18:40 ` Azeem Bande-Ali
2021-08-16 12:28 ` Johannes Schindelin
2021-08-15 1:50 ` [PATCH v3] " Azeem Bande-Ali via GitGitGadget
2021-09-08 0:18 ` Junio C Hamano
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4f72cd3d-bcc7-a9b0-cc11-f0d7c5650365@gmail.com \
--to=bagasdotme@gmail.com \
--cc=A.BandeAli@gmail.com \
--cc=b@rr-dav.id.au \
--cc=git@vger.kernel.org \
--cc=gitgitgadget@gmail.com \
--cc=me@azeemba.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).