Skip to content

Commit e216cc4

Browse files
pcloudsgitster
authored andcommitted
t4014: a few more tests on cover letter using branch description
Signed-off-by: Nguyễn Thái Ngọc Duy <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 4b5553b commit e216cc4

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

t/t4014-format-patch.sh

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -891,4 +891,25 @@ test_expect_success 'format patch ignores color.ui' '
891891
test_cmp expect actual
892892
'
893893

894+
test_expect_success 'cover letter using branch description (1)' '
895+
git checkout rebuild-1 &&
896+
test_config branch.rebuild-1.description hello &&
897+
git format-patch --stdout --cover-letter master >actual &&
898+
grep hello actual >/dev/null
899+
'
900+
901+
test_expect_success 'cover letter using branch description (2)' '
902+
git checkout rebuild-1 &&
903+
test_config branch.rebuild-1.description hello &&
904+
git format-patch --stdout --cover-letter rebuild-1~2..rebuild-1 >actual &&
905+
grep hello actual >/dev/null
906+
'
907+
908+
test_expect_success 'cover letter using branch description (3)' '
909+
git checkout rebuild-1 &&
910+
test_config branch.rebuild-1.description hello &&
911+
git format-patch --stdout --cover-letter ^master rebuild-1 >actual &&
912+
grep hello actual >/dev/null
913+
'
914+
894915
test_done

0 commit comments

Comments
 (0)