t3404: Test the commit count in commit messages generated by "rebase -i"
The first line of commit messages generated for "rebase -i"
squash/fixup commits includes a count of the number of commits that
are being combined. Add machinery to check that this count is
correct, and add such a check to some test cases.
Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
maint
Michael Haggerty15 years agocommitted byJunio C Hamano
FAKE_LINES="1 squash 2" git rebase -i --onto master HEAD~2 &&
FAKE_LINES="1 squash 2" EXPECT_HEADER_COUNT=two \
git rebase -i --onto master HEAD~2 &&
test B = $(cat file7) &&
test $(git rev-parse HEAD^) = $(git rev-parse master)
'
@ -230,6 +231,7 @@ test_expect_success 'verbose flag is heeded, even after --continue' '
@@ -230,6 +231,7 @@ test_expect_success 'verbose flag is heeded, even after --continue' '
test_expect_success 'multi-squash only fires up editor once' '