From mboxrd@z Thu Jan 1 00:00:00 1970 From: Viresh Kumar Subject: Re: Query on git commit amend Date: Tue, 6 Dec 2011 14:50:28 +0530 Message-ID: <4EDDDE5C.6040200@st.com> References: <4EDDD0E4.6040003@st.com> <4EDDDC38.8080108@viscovery.net> Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7bit Cc: "git@vger.kernel.org" , Shiraz HASHIM To: Johannes Sixt , X-From: git-owner@vger.kernel.org Tue Dec 06 10:20:56 2011 Return-path: Envelope-to: gcvg-git-2@lo.gmane.org Received: from vger.kernel.org ([209.132.180.67]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RXrCp-0005SE-IF for gcvg-git-2@lo.gmane.org; Tue, 06 Dec 2011 10:20:55 +0100 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932933Ab1LFJUu (ORCPT ); Tue, 6 Dec 2011 04:20:50 -0500 Received: from eu1sys200aog114.obsmtp.com ([207.126.144.137]:46279 "EHLO eu1sys200aog114.obsmtp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932851Ab1LFJUt (ORCPT ); Tue, 6 Dec 2011 04:20:49 -0500 Received: from beta.dmz-ap.st.com ([138.198.100.35]) (using TLSv1) by eu1sys200aob114.postini.com ([207.126.147.11]) with SMTP ID DSNKTt3eZTuk+4v33T5NtRinjGk6/oRVr/6C@postini.com; Tue, 06 Dec 2011 09:20:48 UTC Received: from zeta.dmz-ap.st.com (ns6.st.com [138.198.234.13]) by beta.dmz-ap.st.com (STMicroelectronics) with ESMTP id 3B1C1AC; Tue, 6 Dec 2011 09:12:06 +0000 (GMT) Received: from Webmail-ap.st.com (eapex1hubcas3.st.com [10.80.176.67]) by zeta.dmz-ap.st.com (STMicroelectronics) with ESMTP id CCE31BBC; Tue, 6 Dec 2011 09:20:32 +0000 (GMT) Received: from [10.199.82.50] (10.199.82.50) by Webmail-ap.st.com (10.80.176.7) with Microsoft SMTP Server (TLS) id 8.3.192.1; Tue, 6 Dec 2011 17:20:32 +0800 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:6.0) Gecko/20110812 Thunderbird/6.0 In-Reply-To: <4EDDDC38.8080108@viscovery.net> Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org Archived-At: On 12/6/2011 2:41 PM, Johannes Sixt wrote: > Am 12/6/2011 9:23, schrieb Viresh Kumar: > $ git commit --amend -a -C HEAD > > But let's count keystrokes (after -a): > > -CHEAD > 10 keystrokes (more if you release SHIFT before D) > > But if vi pops up you have: > > ZZ > 4 keystrokes > > Where is the advantage of the option? > Thanks guys. @Johannes: You are right but, i will make an alias for the entire command. So keystrokes are same for me. :) -- viresh