From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Pitre Subject: Re: 'commit -a' safety (was: Re: Please default to 'commit -a' when no changes were added) Date: Sat, 24 Apr 2010 15:44:52 -0400 (EDT) Message-ID: References: <20100422151037.2310.2429.reportbug@frosties.localdomain> <20100422155806.GC4801@progeny.tock> <20100424164247.GM3563@machine.or.cz> <20100424185433.GN3563@machine.or.cz> Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Content-Transfer-Encoding: 7BIT Cc: Petr Baudis , Wincent Colaiuta , Jakub Narebski , Jonathan Nieder , Goswin von Brederlow , 578764@bugs.debian.org, git@vger.kernel.org To: Jacob Helwig X-From: git-owner@vger.kernel.org Sat Apr 24 21:45:03 2010 connect(): No such file or directory 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 1O5lHf-0006cW-VC for gcvg-git-2@lo.gmane.org; Sat, 24 Apr 2010 21:45:00 +0200 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753952Ab0DXToy (ORCPT ); Sat, 24 Apr 2010 15:44:54 -0400 Received: from relais.videotron.ca ([24.201.245.36]:38340 "EHLO relais.videotron.ca" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751179Ab0DXTox (ORCPT ); Sat, 24 Apr 2010 15:44:53 -0400 Received: from xanadu.home ([66.130.28.92]) by VL-MO-MR005.ip.videotron.ca (Sun Java(tm) System Messaging Server 6.3-4.01 (built Aug 3 2007; 32bit)) with ESMTP id <0L1E00M8NC6SDW90@VL-MO-MR005.ip.videotron.ca> for git@vger.kernel.org; Sat, 24 Apr 2010 15:44:52 -0400 (EDT) X-X-Sender: nico@xanadu.home In-reply-to: User-Agent: Alpine 2.00 (LFD 1167 2008-08-23) Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org Archived-At: On Sat, 24 Apr 2010, Jacob Helwig wrote: > On Sat, Apr 24, 2010 at 11:54, Petr Baudis wrote: > > Are there valid user scenarios where you customize your index, then want > > to override that using -a without thinking twice? > > > > Depends on what you consider "customizing your index". I add files to > the index all the time as I'm working on things, then commit -a at the > end "without thinking twice". > > For example: > 1) Hack on something. > 2) git add $thing > 3) Run full test-suite. > 4) Fix a failing module. > 5) git add $fixed-module-and-tests > 6) Repeat 3-5 until there's only one module failing. > 7) Fix last failing module. > 8) git commit -a > > I doubt I'm the only one that stages things as a way of marking them > as "done", and using git commit -a to "check-off" the last "todo" > item. Sure. But do you happen to often "commit -a" more changes to an already previously modified and staged (but not committed yet) file? Nicolas