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: Dan Nicolaescu
Subject: Re: C-x v u for added files in vc-git
Date: Thu, 3 Dec 2009 01:09:03 -0800 (PST)

address@hidden writes:

  > 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.

Does it also restore the file contents in the case where the file is
registered and it has been changed ? (that's another use for the
function in question).




reply via email to

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