News for hackers. Stuff that matters.
Re:Why is Git Autocorrect too fast for Formula One drivers? by schacon on Sunday January 19, 2025 @03:15PM (#42761315)
I'm curious if the startup time, plus the overhead of Git trying to figure out what you might have meant is significant enough to give you enough time to realize and hit ctrl+c. In testing it quickly, it looks like typing the wrong command and having it spit out the possible matches without running it takes 0.01-0.03s, so I would venture to guess that it's still not enough time between hitting enter and then immediately hitting ctrl-c, but maybe you're very very fast?
Re:Why is Git Autocorrect too fast for Formula One drivers? by rad_gruchalski on Sunday January 19, 2025 @03:50PM (#42761663)
The command is already running, you ctrl+c THE command. But I agree, 100ms is short.
Re:Why is Git Autocorrect too fast for Formula One drivers? by johnisgood on Monday January 20, 2025 @06:50AM (#42767716)
I think most programs you execute have enough startup overhead to do Ctrl-C before it even begins, including CLI tools. I do this a lot (and calculate in the time of realizing it was the wrong command, or not the flags I wanted, etc.)