mirror of
https://github.com/git/git.git
synced 2025-04-22 06:55:54 +00:00
t4014: a few more tests on cover letter using branch description
Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
parent
4b5553b5f3
commit
e216cc48da
@ -891,4 +891,25 @@ test_expect_success 'format patch ignores color.ui' '
|
||||
test_cmp expect actual
|
||||
'
|
||||
|
||||
test_expect_success 'cover letter using branch description (1)' '
|
||||
git checkout rebuild-1 &&
|
||||
test_config branch.rebuild-1.description hello &&
|
||||
git format-patch --stdout --cover-letter master >actual &&
|
||||
grep hello actual >/dev/null
|
||||
'
|
||||
|
||||
test_expect_success 'cover letter using branch description (2)' '
|
||||
git checkout rebuild-1 &&
|
||||
test_config branch.rebuild-1.description hello &&
|
||||
git format-patch --stdout --cover-letter rebuild-1~2..rebuild-1 >actual &&
|
||||
grep hello actual >/dev/null
|
||||
'
|
||||
|
||||
test_expect_success 'cover letter using branch description (3)' '
|
||||
git checkout rebuild-1 &&
|
||||
test_config branch.rebuild-1.description hello &&
|
||||
git format-patch --stdout --cover-letter ^master rebuild-1 >actual &&
|
||||
grep hello actual >/dev/null
|
||||
'
|
||||
|
||||
test_done
|
||||
|
Loading…
x
Reference in New Issue
Block a user