|
From: | mathias |
Subject: | Re: C-x v u for added files in vc-git |
Date: | Thu, 03 Dec 2009 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
[Prev in Thread] | Current Thread | [Next in Thread] |