[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: vc-register complains if a file is already registered in a git repos
From: |
Stefan Monnier |
Subject: |
Re: vc-register complains if a file is already registered in a git repository |
Date: |
Tue, 21 Oct 2008 17:43:37 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) |
> Unfortunately when I use vc-register on a file that is already in the
> repository, it complains, saying "This file is already registered". This
> is a reasonable thing to do in most VC systems, but git behaves
> differently since it's a common thing to want to register the changes
> you've just made to the git index (or staging area).
I'm not sure we want to allow C-x v i to do that. OT1H it might be
convenient and maybe it can work well, but OTOH it looks risky and would
require changing vc-register more than I'd like.
It would probably be better for vc-git to provide another command, for that.
We could probably add a `extra-keys' operation similar to `extra-menu'
so that vc-git can not only provide a new command but also provide
a specific C-x v <foo> key binding for it.
Stefan