News for hackers. Stuff that matters.
Re:Can we communally deprecate git checkout? by lukeschlather on Thursday January 09, 2025 @05:14PM (#42650374)
This isn't about complexity it's about git putting multiple commands into one and potentially doing stupid things as a result. (Even though I don't think I've ever actually had a problem where I said "git checkout <file>" and git interpreted it as a branch or vice versa. I mean, that happens but I think in every instance no such file/branch has existed so git did nothing.)

In any case, I think checkout does in fact conflate things that should be (at least) two separate commands. That's not "less complex" it's about having more predictable behavior. And arguably it's more complex than the status quo.

There are no comments on this comment yet.