unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: mathias@mnet-mail.de
To: Dan Nicolaescu <dann@ics.uci.edu>
Cc: emacs-devel@gnu.org
Subject: Re: C-x v u for added files in vc-git
Date: Thu, 03 Dec 2009 09:02:05 +0100	[thread overview]
Message-ID: <20091203090205.8k74zmgqe8ko8k8o@webmail.mnet-online.de> (raw)
In-Reply-To: <200912030606.nB366cKS021507@godzilla.ics.uci.edu>

Zitat von Dan Nicolaescu <dann@ics.uci.edu>:

> 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	other threads:[~2009-12-03  8:02 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-12-03  6:06 C-x v u for added files in vc-git Dan Nicolaescu
2009-12-03  8:02 ` mathias [this message]
2009-12-03  9:09   ` Dan Nicolaescu
2009-12-03 12:15     ` mathias
2009-12-03 18:22       ` Dan Nicolaescu
2009-12-04  3:39         ` Miles Bader
2009-12-04  4:49           ` Dan Nicolaescu
2009-12-04  5:24             ` Miles Bader
2009-12-04  5:44               ` Dan Nicolaescu
2009-12-04  7:58                 ` Miles Bader
2009-12-04 18:55                   ` Dan Nicolaescu

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20091203090205.8k74zmgqe8ko8k8o@webmail.mnet-online.de \
    --to=mathias@mnet-mail.de \
    --cc=dann@ics.uci.edu \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).