Re: 'commit -a' safety (was: Re: Please default to 'commit -a' when no changes were added)

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Petr Baudis
Date: Saturday, April 24, 2010 - 9:42 am

On Sat, Apr 24, 2010 at 01:10:24PM +0200, Wincent Colaiuta wrote:

Thanks for this suggestion, this is exactly what I wanted to propose!
+1 here.

I think this could even be made a default in some time, I don't see any
useful workflows this could prevent and adding -f is trivial enough for
those who really want to go forward.


Have you ever done this mistake? If you have done some extensive index
editing, it is actually a major PITA to restore, and can be even
destructive if your index and working tree are too much out-of-sync
(this does happen to me not so seldom while I also use -a a lot for
trivial commits).


BTW, I almost always use -m instead of the commit editor. ;-)

-- 
				Petr "Pasky" Baudis
When I feel like exercising, I just lie down until the feeling
goes away.  -- xed_over
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: Please default to 'commit -a' when no changes were added, Jonathan Nieder, (Thu Apr 22, 8:58 am)
Re: Please default to 'commit -a' when no changes were added, Goswin von Brederlow, (Thu Apr 22, 11:37 am)
Re: Please default to 'commit -a' when no changes were added, Sverre Rabbelier, (Thu Apr 22, 12:08 pm)
Re: Please default to 'commit -a' when no changes were added, Goswin von Brederlow, (Thu Apr 22, 1:37 pm)
Re: Please default to 'commit -a' when no changes were added, Jonathan Nieder, (Thu Apr 22, 3:27 pm)
Re: Please default to 'commit -a' when no changes were added, Goswin von Brederlow, (Fri Apr 23, 2:03 am)
Re: Please default to 'commit -a' when no changes were added, Goswin von Brederlow, (Fri Apr 23, 2:09 am)
Re: Please default to 'commit -a' when no changes were added, Goswin von Brederlow, (Fri Apr 23, 2:14 am)
Re: Please default to 'commit -a' when no changes were added, Goswin von Brederlow, (Fri Apr 23, 2:15 am)
Re: Please default to 'commit -a' when no changes were added, Goswin von Brederlow, (Fri Apr 23, 2:25 am)
Re: Please default to 'commit -a' when no changes were added, Björn Steinbrink, (Fri Apr 23, 2:39 am)
Re: Please default to 'commit -a' when no changes were added, Sverre Rabbelier, (Fri Apr 23, 4:57 am)
Re: Please default to 'commit -a' when no changes were added, Goswin von Brederlow, (Fri Apr 23, 7:23 am)
Re: Please default to 'commit -a' when no changes were added, Wincent Colaiuta, (Fri Apr 23, 9:01 am)
Re: Please default to 'commit -a' when no changes were added, Michael Witten, (Fri Apr 23, 10:00 am)
Re: Please default to 'commit -a' when no changes were added, Matthias Andree, (Fri Apr 23, 11:59 am)
Re: Please default to 'commit -a' when no changes were added, Michael Witten, (Fri Apr 23, 12:34 pm)
Re: Please default to 'commit -a' when no changes were added, Goswin von Brederlow, (Fri Apr 23, 1:17 pm)
Re: Please default to 'commit -a' when no changes were added, Matthias Andree, (Fri Apr 23, 3:18 pm)
Re: Please default to 'commit -a' when no changes were added, Matthias Andree, (Fri Apr 23, 3:35 pm)
Re: 'commit -a' safety, Miles Bader, (Sat Apr 24, 2:56 am)
Re: 'commit -a' safety, Andreas Schwab, (Sat Apr 24, 3:05 am)
Re: 'commit -a' safety, Jakub Narebski, (Sat Apr 24, 3:26 am)
Re: 'commit -a' safety, Jakub Narebski, (Sat Apr 24, 4:48 am)
Re: 'commit -a' safety, Miles Bader, (Sat Apr 24, 6:29 am)
Re: 'commit -a' safety, Joey Hess, (Sat Apr 24, 7:28 am)
Re: 'commit -a' safety, Mike Hommey, (Sat Apr 24, 8:11 am)
Re: 'commit -a' safety (was: Re: Please default to 'commit ..., Petr Baudis, (Sat Apr 24, 9:42 am)
Re: 'commit -a' safety, Nicolas Pitre, (Sat Apr 24, 11:23 am)
Re: Please default to 'commit -a' when no changes were added, Goswin von Brederlow, (Sat Apr 24, 2:15 pm)
Re: Please default to 'commit -a' when no changes were added, Jonathan Nieder, (Sat Apr 24, 2:40 pm)
Re: Please default to 'commit -a' when no changes were added, Goswin von Brederlow, (Sat Apr 24, 3:08 pm)
Re: Please default to 'commit -a' when no changes were added, Jonathan Nieder, (Sat Apr 24, 3:42 pm)
Re: 'commit -a' safety, Jakub Narebski, (Sat Apr 24, 4:47 pm)
Re: 'commit -a' safety, Jakub Narebski, (Sat Apr 24, 5:16 pm)
Re: 'commit -a' safety, Junio C Hamano, (Sat Apr 24, 6:13 pm)
Re: 'commit -a' safety, Miles Bader, (Sat Apr 24, 7:43 pm)
Re: Please default to 'commit -a' when no changes were added, Jonathan Nieder, (Sat Apr 24, 8:33 pm)
Re: 'commit -a' safety, Jakub Narebski, (Sun Apr 25, 1:01 am)