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: Wincent Colaiuta
Date: Saturday, April 24, 2010 - 4:10 am

El 24/04/2010, a las 11:40, Jakub Narebski escribió:


For me this is going to far. While we don't want to make it _easy_ for users to shoot themselves in the foot, neither do we want to make it difficult or impossible for them to get the tool to do things that _might_ be a mistake. And what's the risk here? Accidentally committing too much is not a destructive change, and can be easily undone.

Where do we stop here with the hand-holding? Would you also want a fatal error here?:

$ git add foo
$ git commit -- bar
fatal: There are staged changes to tracked files

IMO, the fact that the commit message editor is populated with a list of changed files that will be included in the commit is enough for people to see what's actually going to happen.

Cheers,
Wincent



--
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 (was: Re: Please default to 'commit ..., Wincent Colaiuta, (Sat Apr 24, 4:10 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, 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)