Re: [PATCH] rebase [--onto O] A B: omit needless checkout
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Mar 19, 2008, 19:19 UTC
- Message-ID
- <7vhcf24j3e.fsf@gitster.siamese.dyndns.org>
- In-Reply-To
- <47E10D0D.2080702@viscovery.net>
Johannes Sixt <j.sixt@viscovery.net> writes:
Show 6 quoted lines
> Junio C Hamano schrieb: >> This teaches "git rebase [--onto O] A B" to omit an unnecessary checkout >> of branch B before it goes on. >> ... > > This works for a frequent use-case of mine:
"Works" meaning "does not break", or "gives a great performance improvement that it is worth having it early in a tagged release"?
Show 11 quoted lines
> $ git rebase master devel > > where I am already on branch master, and now want to rebase devel on top > of it. > > The code seems to take care of a lot of corner cases and less frequent > use-cases, including using --onto, which I don't feel able to judge about. > >> +# git reset --hard "$onto^0" > > Don't forget to remove this line. ;)