Thread (6 messages) flat view 6 messages, 5 authors, 2016-06-15

Re: [PATCH] Documentation: add a planning document for the next CLI revamp

From: Matthieu Moy <hidden>
Date: 2016-06-15 22:45:33

Theodore Tso [off-list ref] writes:
* Add the command "git revert-file <files>" which is syntactic sugar for:

        git checkout HEAD -- <files>
I don't think "revert-file" is a good name for this: although other
SCM often call this "revert", what Git calls "revert" is about
reverting an existing commit (it's "backout" in hg for example). The
terminology to revert the working tree to the last commited version is
already here in Git, it's "reset".

I've already argued in favor of allowing "git reset --hard <files>",
which is consistant with existing terminology and doesn't add an extra
command, but without success.

-- 
Matthieu
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help