X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=t%2Ft3415-rebase-autosquash.sh;h=b38be8e93723991d717b6b7fb690560efb58c36d;hb=e147e9693ace9f7c6dafd4095d3cde80d047e787;hp=ca16b70373b5595f4a5e3c460638c7aa2edb8663;hpb=5e738ae820ec53c45895b029baa3a1f63e654b1b;p=git.git diff --git a/t/t3415-rebase-autosquash.sh b/t/t3415-rebase-autosquash.sh index ca16b7037..b38be8e93 100755 --- a/t/t3415-rebase-autosquash.sh +++ b/t/t3415-rebase-autosquash.sh @@ -14,6 +14,7 @@ test_expect_success setup ' git add . && test_tick && git commit -m "first commit" && + git tag first-commit && echo 3 >file3 && git add . && test_tick && @@ -21,7 +22,7 @@ test_expect_success setup ' git tag base ' -test_auto_fixup() { +test_auto_fixup () { git reset --hard base && echo 1 >file1 && git add -u && @@ -50,7 +51,7 @@ test_expect_success 'auto fixup (config)' ' test_must_fail test_auto_fixup final-fixup-config-false ' -test_auto_squash() { +test_auto_squash () { git reset --hard base && echo 1 >file1 && git add -u && @@ -168,4 +169,28 @@ test_expect_success 'auto squash that matches longer sha1' ' test 1 = $(git cat-file commit HEAD^ | grep squash | wc -l) ' +test_auto_commit_flags () { + git reset --hard base && + echo 1 >file1 && + git add -u && + test_tick && + git commit --$1 first-commit && + git tag final-commit-$1 && + test_tick && + git rebase --autosquash -i HEAD^^^ && + git log --oneline >actual && + test 3 = $(wc -l