From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Phil Hagelberg Newsgroups: gmane.emacs.devel Subject: vc-register complains if a file is already registered in a git repository Date: Mon, 20 Oct 2008 13:29:31 -0700 Message-ID: <87prlvm2ms.fsf@hagelb.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1224539392 27120 80.91.229.12 (20 Oct 2008 21:49:52 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 20 Oct 2008 21:49:52 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Oct 20 23:50:51 2008 connect(): Connection refused Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Ks1Ou-00073i-Fl for ged-emacs-devel@m.gmane.org; Mon, 20 Oct 2008 22:30:52 +0200 Original-Received: from localhost ([127.0.0.1]:58462 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ks1Np-0003gq-7l for ged-emacs-devel@m.gmane.org; Mon, 20 Oct 2008 16:29:45 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Ks1Nk-0003fn-Mf for emacs-devel@gnu.org; Mon, 20 Oct 2008 16:29:40 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Ks1Nh-0003f5-L0 for emacs-devel@gnu.org; Mon, 20 Oct 2008 16:29:39 -0400 Original-Received: from [199.232.76.173] (port=43299 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ks1Nh-0003eu-CI for emacs-devel@gnu.org; Mon, 20 Oct 2008 16:29:37 -0400 Original-Received: from sd-green-bigip-66.dreamhost.com ([208.97.132.66]:45179 helo=spunkymail-a18.g.dreamhost.com) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Ks1Ng-0002R2-RK for emacs-devel@gnu.org; Mon, 20 Oct 2008 16:29:37 -0400 Original-Received: from dynabook (unknown [64.81.164.191]) by spunkymail-a18.g.dreamhost.com (Postfix) with ESMTP id 04AA55B4F6 for ; Mon, 20 Oct 2008 13:29:31 -0700 (PDT) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 1) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:104695 Archived-At: When I visit a file that is already registered in my git repository, I would like to make some changes and register them in the git index. 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 would suggest that the vc-register be allowed when the file is already registered if the backend is git. I know that VC intends to be a fairly transparent frontend that behaves the same way with all different version control systems, but ignoring the existence of the git index discards a lot of the flexibility that is the reason many people use git in the first place. Maybe if a special-case within vc.el itself is frowned upon a new command such as vc-register-changes could be made that is only implemented in the git backend? -Phil