File tree Expand file tree Collapse file tree 1 file changed +21
-0
lines changed
Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Original file line number Diff line number Diff 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+
894915test_done
You can’t perform that action at this time.
0 commit comments