Re: Add warning when there are changes in the index and using -a with git commit
- From
Sverre Rabbelier <srabbelier@gmail.com>
- Date
- Apr 21, 2010, 21:21 UTC
- Message-ID
- <q2pfabb9a1e1004211421q80d273ady11f4621284522c46@mail.gmail.com>
- In-Reply-To
- <v2m7fce93be1004211320r9adc0b14j11bd06c3b045e639@mail.gmail.com>
Heya,
On Wed, Apr 21, 2010 at 22:20, Sylvain Rabot <sylvain@abstraction.fr> wrote:
> Many times I had the bad reflex of doing a git commit -as -m "blah > blah" when I was willing to commit only things I had staged in the > index.
Me too, and I think I brought it up in the past and it was dismissed as being too annoying, but I'm not sure. Either way, you can work around it by creating your own 'git-co' wrapper that does the check and use that instead of 'git commit'.
-- Cheers, Sverre Rabbelier