Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable command auto-correction #287

Merged

Conversation

arcticicestudio
Copy link
Owner

Resolves #286

In GH-150 [1] the `help.autocorrect` [1] configuration was added to run
auto-corrected commands with a specified delay time (seconds) after a
info message has been shown. After long usage this turns out to be more
disruptive than useful because it might auto-correct to the wrong
command, for example when there are many aliases with similar names but
different purposes. In one situation I prevented my current non-commited
work to be lost because Git was about to correct my command typo to my
`wipe` alias which resets all changes to the last commit
(`git reset --hard`).

Also the time to wait before a command get actually corrected is
wasted, because I could have entered the correct command multiple times
again.

To prevent these situations the features has been disabled again.

[1]: #150
[2]: https://git-scm.com/book/en/v2/Customizing-Git-Git-Configuration#_code_help_autocorrect_code

GH-286
@arcticicestudio arcticicestudio merged commit 95e2320 into master Oct 4, 2020
@arcticicestudio arcticicestudio deleted the improvement/gh-286-disable-cmd-auto-correct branch October 4, 2020 20:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Disable command auto-correction
2 participants