Do not autosquash in case of an implied interactive rebase
authorVincent van Ravesteijn <vfr@lyx.org>
Thu, 24 May 2012 13:57:26 +0000 (13:57 +0000)
committerJunio C Hamano <gitster@pobox.com>
Sun, 17 Jun 2012 21:01:42 +0000 (14:01 -0700)
The option to autosquash is only used in case of an interactive rebase.
When merges are preserved, rebase uses an interactive rebase internally,
but in this case autosquash should still be disabled.

Signed-off-by: Vincent van Ravesteijn <vfr@lyx.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-rebase.sh

index 03f73da8879455a5b07644f8bc00609b1990b0d9..ede9723327e32f312da7d1122912459b502e69bb 100755 (executable)
@@ -165,6 +165,7 @@ run_specific_rebase () {
        if [ "$interactive_rebase" = implied ]; then
                GIT_EDITOR=:
                export GIT_EDITOR
+               autosquash=
        fi
        . git-rebase--$type
 }