Re: [PATCH] Add help.autocorrect to enable/disable autocorrecting
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Aug 31, 2008, 16:33 UTC
- Message-ID
- <7v1w05401m.fsf@gitster.siamese.dyndns.org>
- In-Reply-To
- <vpqk5dxqlya.fsf@bauges.imag.fr>
Matthieu Moy <Matthieu.Moy@imag.fr> writes:
Show 11 quoted lines
> Alex Riesen <raa.lkml@gmail.com> writes: > >> It is off(0) by default, to avoid scaring people unless they asked to. >> If set to a non-0 value, wait for that amount of deciseconds before >> running the corrected command. > > Perhaps off should be -1 (or, say, anything negative), so that the > value 0 can be used to mean "execute the corrected command without > waiting". > > (not that I really care personnally, I'd probably keep it off anyway).
I do not want to suggest this because I do not think of a good way to implement it myself, but it would be very nice if this feature can be enabled by default for interactive session and disabled for scripts.
Well, actually I think I do ;-)
Perhaps have a bash alias that does:
alias git="git --dwim"
only in interactive session (ensuring "only in interactive" is the responsibility of the end user), with the global option similar to the "--paginate" that "git" wrapper itself takes?