一樣是在整理 Hacker News Daily 時看到「Why is Git Autocorrect too fast for Formula One drivers? (gitbutler.com)」這篇,原文在「Why is Git Autocorrect too fast for Formula One drivers?」。
文章裡面主要是提到 DHH 抱怨 Git 的 autoconnect 只給他 0.1 秒按下 Ctrl-C 中斷:
Git 的 help.autocorrect
預設是 0
(只顯示建議),但看起來 DHH 打開他了,這邊的地雷是 help.autocorrect
單位是 0.1 秒 (100ms),所以設為 1 就剛好是 DHH 遇到的效果:(出自 8.1 Customizing Git - Git Configuration)
Note that “0.1 seconds” business.
help.autocorrect
is actually an integer which represents tenths of a second. So if you set it to 50, Git will give you 5 seconds to change your mind before executing the autocorrected command.
就... 一個對 developer 很不有好的設計?