OSDN Git Service

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>
Tue, 29 May 2012 18:44:14 +0000 (11:44 -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 24a2840..9148ec2 100755 (executable)
@@ -167,6 +167,7 @@ run_specific_rebase () {
        if [ "$interactive_rebase" = implied ]; then
                GIT_EDITOR=:
                export GIT_EDITOR
+               autosquash=
        fi
        . git-rebase--$type
 }