Code

rebase -i: fix squashing corner case
authorJohannes Schindelin <Johannes.Schindelin@gmx.de>
Thu, 23 Aug 2007 08:55:41 +0000 (09:55 +0100)
committerJunio C Hamano <gitster@pobox.com>
Thu, 23 Aug 2007 09:34:19 +0000 (02:34 -0700)
commit1d25c8cf82eead72e11287d574ef72d3ebec0db1
treee25c7e019c227f783bc99d4d31a9270cca6d4395
parent191131e538dd4188dbada7ce871f80af80556292
rebase -i: fix squashing corner case

When squashing, rebase -i did not prevent fast forwards.  This could
happen when picking some other commit than the first one, and then
squashing the first commit.  So do not allow fast forwards when
squashing.

Noticed by Johannes Sixt.

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