From: Jeff King <peff@peff.net>
To: "rubenkram@spacetrace.org" <rubenkram@spacetrace.org>
Cc: git@vger.kernel.org
Subject: Re: [Feature request] help.autocorrect suggestion with Y/N
Date: Tue, 8 Sep 2015 04:40:35 -0400 [thread overview]
Message-ID: <20150908084035.GC2991@sigill.intra.peff.net> (raw)
In-Reply-To: <55EE9828.106@spacetrace.org>
On Tue, Sep 08, 2015 at 10:11:20AM +0200, rubenkram@spacetrace.org wrote:
> git: 'glone' is not a git command. See 'git --help'.
>
> Did you mean this?
> clone
>
> It would be handsome if you could say "Yes" to this question so you
> don't have to manually correct your last command like:
>
> Did you mean this?
> clone
> [Y/n]
There is currently no way to ask, but you might want to check out
help.autoCorrect:
$ git config --global help.autoCorrect 10
$ git glone ...
WARNING: You called a Git command named 'gclone', which does not exist.
Continuing under the assumption that you meant 'clone'
in 1.0 seconds automatically...
You can set it to "-1" if you want no delay at all.
If you (or someone) wanted to add an interactive version, it would
probably make sense to trigger it by setting help.autoCorrect to "ask".
-Peff
prev parent reply other threads:[~2015-09-08 8:40 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-09-08 8:11 [Feature request] help.autocorrect suggestion with Y/N rubenkram
2015-09-08 8:40 ` Jeff King [this message]
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=20150908084035.GC2991@sigill.intra.peff.net \
--to=peff@peff.net \
--cc=git@vger.kernel.org \
--cc=rubenkram@spacetrace.org \
/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).