Merge branch 'vr/rebase-autosquash-does-not-imply-i'
authorJunio C Hamano <gitster@pobox.com>
Fri, 1 Jun 2012 20:28:01 +0000 (13:28 -0700)
committerJunio C Hamano <gitster@pobox.com>
Fri, 1 Jun 2012 20:28:01 +0000 (13:28 -0700)
"git rebase -p" used to pay attention to rebase.autosquash which was
wrong. "git rebase -p -i" should, but "git rebase -p" by itself
should not.

By Vincent van Ravesteijn
* vr/rebase-autosquash-does-not-imply-i:
Do not autosquash in case of an implied interactive rebase

git-rebase.sh
index 24a2840033c175ff5399de82a1a777c75c0e85dd..9148ec25c1c865f28a84e64ae67c85dca28f1eaf 100755 (executable)
@@ -167,6 +167,7 @@ run_specific_rebase () {
        if [ "$interactive_rebase" = implied ]; then
                GIT_EDITOR=:
                export GIT_EDITOR
+               autosquash=
        fi
        . git-rebase--$type
 }