3 ms·
(I'm not sure "if a path is specified" was actually part of the comment when I responded, but I'll grant that...) Ah, missed that -- and I concur with the othe
by lomnakkus 12y ago
(I'm not sure "if a path is specified" was actually part of the comment when I responded, but I'll grant that...)
Ah, missed that -- and I concur with the other commenter that this is bad UI.
However, I don't think this qualifies as particularly dangerous or surprising behavior. You're explicitly giving a file name after all -- you had better read up on what the command does if you're doing that. ("rm X" is pretty good precedent.)
- lomnakkus 12y ago(Self-reply and all, and I'm not sure anyone actually reads these old threads...) Does "checkout -- some-file" not add an entry to the reflog? (Which, btw, is one of the most important and useful commands ever in the history of VCS.)