Re: [PATCH 0/2] Making "git commit" to mean "git commit -a".
- From
Johannes Schindelin <johannes.schindelin@gmx.de>
- Date
- Nov 30, 2006, 10:27 UTC
- Message-ID
- <Pine.LNX.4.63.0611301124260.30004@wbgn013.biozentrum.uni-wuerzburg.de>
- In-Reply-To
- <Pine.LNX.4.64.0611291859070.3513@woody.osdl.org>
Hi,
On Wed, 29 Nov 2006, Linus Torvalds wrote:
> So where doing the "git apply --index" thing is great is when you see a > patch that has some obvious deficiency that makes you not want to commit > it directly, but add some fixup of your own.
An obvious deficiency would also be the presence of hundreds of debug quirks I had to introduce to find the bug which I finally fixed. But I do not want to commit, because it is such a mess. So: into the index, ye files.
Now I can clean up everything I introduced to find the bug. If the result does not work as expected? "git diff"!
But now that I cleaned up the mess, I find that there is a more elegant way to solve the problem. Into the index, ye files! Clicketyclick, if I mess up, I always have the state in the index!
Ciao, Dscho