Re: git-rebase dirty index and email address bug?
- From
Jeff King <peff@peff.net>
- Date
- Mar 2, 2008, 07:30 UTC
- Message-ID
- <20080302073016.GC3935@coredump.intra.peff.net>
- In-Reply-To
- <slrnfsjim1.5e0.jgoerzen@katherina.lan.complete.org>
On Sat, Mar 01, 2008 at 03:29:37PM -0600, John Goerzen wrote:
Show 6 quoted lines
> Two things to add: > > 1) This was a clean branch prior to rebase (git status was empty) > > 2) Adding -i to the rebase command, then making no changes to the > list, caused the rebase to work perfectly.
Yes, "rebase -i" works somewhat differently than an ordinary rebase. It uses a series of cherry-picks rather than "format-patch | am". And the bug is, I think, in "git-am".
It probably would also have worked using "git rebase -m" which uses merge strategies to rebase.
And yes, it is a bit crazy that there are so many ways to rebase. The original, "format-patch | am" is faster than the other schemes, but doesn't handle renames (as "rebase -m" does); nor is it flexible enough to do what "rebase -i" does.
-Peff