git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [Feature request] help.autocorrect suggestion with Y/N
@ 2015-09-08  8:11 rubenkram
  2015-09-08  8:40 ` Jeff King
  0 siblings, 1 reply; 2+ messages in thread
From: rubenkram @ 2015-09-08  8:11 UTC (permalink / raw)
  To: git

When you type

 git clone https://repo.git

now you get

 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]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [Feature request] help.autocorrect suggestion with Y/N
  2015-09-08  8:11 [Feature request] help.autocorrect suggestion with Y/N rubenkram
@ 2015-09-08  8:40 ` Jeff King
  0 siblings, 0 replies; 2+ messages in thread
From: Jeff King @ 2015-09-08  8:40 UTC (permalink / raw)
  To: rubenkram@spacetrace.org; +Cc: git

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-09-08  8:40 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-09-08  8:11 [Feature request] help.autocorrect suggestion with Y/N rubenkram
2015-09-08  8:40 ` Jeff King

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).