rebase -i: avoid 'git reset' when possible
authorJohannes Schindelin <Johannes.Schindelin@gmx.de>
Tue, 3 Mar 2009 09:55:31 +0000 (10:55 +0100)
committerJunio C Hamano <gitster@pobox.com>
Tue, 3 Mar 2009 18:56:22 +0000 (10:56 -0800)
commit0e757e30c726d9d8ae82bd9989be3cff5d230288
treeeb1e1a6de6052abbf6523893f0627aaeb1e6610f
parent1d035f85649cbb0a4fcc3e341f7e854acf9cf3c1
rebase -i: avoid 'git reset' when possible

When picking commits whose parents have not changed, we do not need to
rewrite the commit.  We do not need to reset the working directory to
the parent's state, either.

Requested by Sverre Rabbelier.

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