Re: [PATCH] builtin-commit: fix "git add x y && git commit y" committing x, too
- From
Johannes Schindelin <johannes.schindelin@gmx.de>
- Date
- Nov 15, 2007, 16:37 UTC
- Message-ID
- <Pine.LNX.4.64.0711151635580.30886@racer.site>
- In-Reply-To
- <Pine.LNX.4.64.0711151611090.30886@racer.site>
Hi,
On Thu, 15 Nov 2007, Johannes Schindelin wrote:
Show 5 quoted lines
> > Earlier, builtin commit would implicitly commit also the staged > changes. > > This patch fixes that.
This was only lightly tested. Alas, there is still a subtle bug... the generated "Untracked/Staged/ToBeCommitted" list seems off. I guess we'd have to reread the index after resetting it to HEAD and adding the files, but before generating that commit message.
Ciao, Dscho