Quantcast
Channel: Programming – Gea-Suan Lin's BLOG
Viewing all articles
Browse latest Browse all 134

Git 的 help.autocorrect 設計問題

$
0
0

一樣是在整理 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 很不有好的設計?


Viewing all articles
Browse latest Browse all 134

Trending Articles


Vimeo 3.41.0 by Vimeo Inc


Pokemon para colorear


Girasoles para colorear


Dibujos de animales para imprimir


Smile Quotes


RE: Mutton Pies (frankie241)


Hagibis (1946) by Francisco V. Coching


Ka longiing longsem kaba skhem bad kaba khlain ka pynlong kein ia ka...


Vimeo Create - Video Maker & Editor 1.4.0 by Vimeo Inc


Vimeo Create - Video Maker & Editor 1.5.2 by Vimeo Inc