Re: [BUG] - git rebase -i performs rebase when it shouldn't?
- From
Jeff King <peff@peff.net>
- Date
- Apr 11, 2010, 10:15 UTC
- Message-ID
- <20100411101526.GA20484@coredump.intra.peff.net>
- In-Reply-To
- <4BC0D87E.70001@kdbg.org>
On Sat, Apr 10, 2010 at 09:58:54PM +0200, Johannes Sixt wrote:
Show 11 quoted lines
> > git checkout foo&& git rebase master > > git checkout bar&& git rebase master > > git checkout baz&& git rebase master > > I'm actually very glad that the current interface is the way it is - > because it can do the rebase *without* the checkout. This way you can > save a lot of recompilation due to changed timestamps if the topic is > based on an old version. > > Only that some (all?) variants of rebase still unnecessarily do the > checkout...
Good point. Originally, we did the rebase directly on the branch, though I'm not sure if we did "checkout $branch && reset $onto" or "branch -f $branch $onto && checkout $branch". These days we operate on a detached HEAD, and we seem to "checkout $onto^0", which should do the optimization you mention.
-Peff