Code

rebase: operate on a detached HEAD
authorJohannes Schindelin <Johannes.Schindelin@gmx.de>
Thu, 8 Nov 2007 18:19:08 +0000 (18:19 +0000)
committerJunio C Hamano <gitster@pobox.com>
Fri, 9 Nov 2007 09:30:31 +0000 (01:30 -0800)
commit6fd2f5e60d4d574ff9e5dd8ce1e229328c785d69
tree8f8845588cab44b7ad392ce52fb89316ad1c5600
parentc238dad407aec1ccf6e364f9c95e10e7f84eac8f
rebase: operate on a detached HEAD

The interactive version of rebase does all the operations on a detached
HEAD, so that after a successful rebase, <branch>@{1} is the pre-rebase
state.  The reflogs of "HEAD" still show all the actions in detail.

This teaches the non-interactive version to do the same.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-rebase.sh
t/t3402-rebase-merge.sh