Why is Git Autocorrect too fast for Formula One drivers?
Why does Git's autocorrect wait 0.1s before executing a mistyped command? Let's dig in.
Hasnain says:
This is why I always name settings that have a time component as eg “settingNameSeconds” so there is no confusion because what even is this
“Which was what the setting value was changed to in the patch that was eventually accepted. This means that setting help.autocorrect to 1 logically means "wait 100ms (1 decisecond) before continuing".
Now, why Junio thought deciseconds was a reasonable unit of time measurement for this is never discussed, so I don't really know why that is. Perhaps 1 full second felt too long so he wanted to be able to set it to half a second? We may never know. All we truly know is that this has never made sense to anyone ever since.”
Posted on 2025-01-23T07:19:50+0000