Re: [Feature request] help.autocorrect suggestion with Y/N

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Sep 08, 2015 at 10:11:20AM +0200, rubenkram@xxxxxxxxxxxxxx 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
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]