From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dan Nicolaescu Newsgroups: gmane.emacs.devel Subject: Re: VC / Git: amend function / mark for add / timing Date: Tue, 13 Oct 2009 10:28:43 -0700 (PDT) Message-ID: <200910131728.n9DHShQc013450@godzilla.ics.uci.edu> References: <9B112266-8695-41CB-A8EA-8D39833060AE@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1255455054 31925 80.91.229.12 (13 Oct 2009 17:30:54 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 13 Oct 2009 17:30:54 +0000 (UTC) Cc: Emacs development discussions To: David Reitter Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Oct 13 19:30:44 2009 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 1MxlCi-0001L1-QU for ged-emacs-devel@m.gmane.org; Tue, 13 Oct 2009 19:30:33 +0200 Original-Received: from localhost ([127.0.0.1]:59773 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MxlCi-0000io-DA for ged-emacs-devel@m.gmane.org; Tue, 13 Oct 2009 13:30:32 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MxlCb-0000d3-F3 for emacs-devel@gnu.org; Tue, 13 Oct 2009 13:30:25 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MxlCW-0000Qu-EA for emacs-devel@gnu.org; Tue, 13 Oct 2009 13:30:24 -0400 Original-Received: from [199.232.76.173] (port=47397 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MxlCW-0000Qd-9d for emacs-devel@gnu.org; Tue, 13 Oct 2009 13:30:20 -0400 Original-Received: from colin-baker-v0.ics.uci.edu ([128.195.1.153]:45419) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MxlCV-0006n9-R9 for emacs-devel@gnu.org; Tue, 13 Oct 2009 13:30:20 -0400 Original-Received: from godzilla.ics.uci.edu (godzilla.ics.uci.edu [128.195.10.101]) by colin-baker-v0.ics.uci.edu (8.13.8/8.13.8) with ESMTP id n9DHShPu001450; Tue, 13 Oct 2009 10:28:43 -0700 Original-Received: (from dann@localhost) by godzilla.ics.uci.edu (8.13.8+Sun/8.13.6/Submit) id n9DHShQc013450; Tue, 13 Oct 2009 10:28:43 -0700 (PDT) In-Reply-To: <9B112266-8695-41CB-A8EA-8D39833060AE@gmail.com> (David Reitter's message of "Sun, 11 Oct 2009 19:30:28 -0500") Original-Lines: 19 X-ICS-MailScanner-Information: Please send mail to helpdesk@ics.uci.edu or more information X-ICS-MailScanner-ID: n9DHShPu001450 X-ICS-MailScanner: Found to be clean X-ICS-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=-1.44, required 5, autolearn=disabled, ALL_TRUSTED -1.44) X-ICS-MailScanner-From: dann@godzilla.ics.uci.edu X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) 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:116110 Archived-At: David Reitter writes: > It would be nice if VC provided a function to add the "--amend" > argument to "git commit" so that the last commit is amended. This is > useful when one forgets to check in file, especially after using C-x v > v to commit a single file. The logical binding I thought of at first > was C-u C-x v v, but that seems to do something else. It shouldn't be too hard to implement this, just that someone needs to figure out what is the best UI for it. > Also, it's not obvious at all from the menu how to mark the file in > the current buffer for addition, i.e. do a "git add". Is this > possible at all? You can do: C-x v d mark the files and directories you want C-x v v