From: Johannes Sixt Date: Sun, 11 Apr 2010 17:54:37 GMT Subject: Re: [BUG] - git rebase -i performs rebase when it shouldn't? Message-ID: <201004111954.38156.j6t@kdbg.org> In-Reply-To: <20100411101526.GA20484@coredump.intra.peff.net> On Sonntag, 11. April 2010, Jeff King wrote: > 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. But before this "checkout $onto^0" happens, some (all?) variants still do "checkout topic && rev-list upstream..HEAD" instead of just "rev-list upstream..topic". -- Hannes