[Top][All Lists]

[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 20:49:03 -0800 (PST)

Miles Bader <address@hidden> writes:

  > Dan Nicolaescu <address@hidden> writes:
  > > 3. is exactly the goal for the command, to get rid of unwanted changes!
  > >
  > > So it seems that if we do the sequence:
  > >
  > > git checkout HEAD <file>
  > > git rm --cached <file>
  > >
  > > that take care of all situations.
  > I don't know _what_ people expect "C-x v u" to do for files that were
  > never committed, .... but the above sequence (specifically, the "git co")
  > seems to reset the file's contents to the contents it had at the time it
  > was added with "git add", in addition to removing it from the list of
  > added files.

That's not good, we need something that just removes it from the index
and keeps the current contents.

  > [What happens with CVS?]

With CVS you are stuck with a file in the "add" state.

With svn, bzr, hg you can use C-x v u to transition from the "add" VC
state to "unregistered".

reply via email to

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