Re: non-empty index with git commit -a
- From
Matthieu Moy <matthieu.moy@grenoble-inp.fr>
- Date
- Feb 16, 2011, 09:05 UTC
- Message-ID
- <vpqsjvos61w.fsf@bauges.imag.fr>
- In-Reply-To
- <20110216032047.GA2858@elie>
Jonathan Nieder <jrnieder@gmail.com> writes:
Show 5 quoted lines
> If I remember the discussion[1] correctly, by requiring a separate > add -u step (or commit -f -a) if the "I don't trust my fingers" > configuration is enabled. > > [1] http://thread.gmane.org/gmane.linux.debian.devel.bugs.general/698001/focus=145662
You may want to look at what eg (easy git) does too:
http://people.gnome.org/~newren/eg/documentation/commit.html
essentially, it considers commiting with dirty index the uncommon case, and requires an extra --staged flag to allow it.
-- Matthieu Moy http://www-verimag.imag.fr/~moy/