-
Notifications
You must be signed in to change notification settings - Fork 7
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
Autocorrect command typos #150
Labels
Milestone
Comments
arcticicestudio
added a commit
that referenced
this issue
Oct 6, 2018
The `help.autocorrect` (1) configuration allows to run auto-corrected commands with a specified delay time (seconds) after the info message has been shown. This should be added and set to a value of `10` (1 second). References: (1) https://git-scm.com/book/en/v2/Customizing-Git-Git-Configuration#_code_help_autocorrect_code GH-150
arcticicestudio
added a commit
that referenced
this issue
Oct 6, 2018
…ct-command-typos Autocorrect command typos
arcticicestudio
added a commit
that referenced
this issue
Oct 4, 2020
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
added a commit
that referenced
this issue
Oct 4, 2020
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 Resolves GH-286
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
The
help.autocorrect
configuration allows to run auto-corrected commands with a specified delay time (seconds) after the info message has been shown. This should be added and set to a value of10
(1 second).The text was updated successfully, but these errors were encountered: