emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: C-x v u for added files in vc-git


From: mathias
Subject: Re: C-x v u for added files in vc-git
Date: 2009年12月03日 09:02:05 +0100
User-agent: Internet Messaging Program (IMP) H3 (4.1.5)

Zitat von Dan Nicolaescu <address@hidden>:
In a git tree doing:
C-x C-f BLAH_BLAH RET
RET
C-x v v
will put the BLAH_BLAH in the 'added state
Doing a C-x v u
after that should return it to the 'unregistered state, but that does
not happen the file stays in the 'added state.
This is because vc-git-revert runs:
(vc-git-command nil 0 file "checkout" "HEAD")
What should vc-git-revert do that it works in the above case too?
git rm --cached <file>
removes the file from the index, i.e. reverts the 'add' command.
Mathias

reply via email to

[Prev in Thread] Current Thread [Next in Thread]

AltStyle によって変換されたページ (->オリジナル) /