From 1308e6299b3a6d07d5098ee48ed4caf9adbe462a Mon Sep 17 00:00:00 2001 From: Arctic Ice Studio Date: Sun, 4 Oct 2020 22:27:30 +0200 Subject: [PATCH] Disable command auto-correction 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]: https://github.com/arcticicestudio/igloo/issues/150 [2]: https://git-scm.com/book/en/v2/Customizing-Git-Git-Configuration#_code_help_autocorrect_code GH-286 --- snowblocks/git/config.conf | 4 ---- 1 file changed, 4 deletions(-) diff --git a/snowblocks/git/config.conf b/snowblocks/git/config.conf index 87accc3..652c1a3 100755 --- a/snowblocks/git/config.conf +++ b/snowblocks/git/config.conf @@ -89,10 +89,6 @@ statusHints = false resolveConflict = false -[help] - # Run auto-corrected commands with 1 second delay after the info message has been shown. - autocorrect = 10 - [status] showUntrackedFiles = all