summaryrefslogtreecommitdiff
path: root/t/t9902-completion.sh
diff options
context:
space:
mode:
authorDenton Liu <liu.denton@gmail.com>2019-10-15 09:06:40 (GMT)
committerJunio C Hamano <gitster@pobox.com>2019-10-16 01:26:45 (GMT)
commitbf8e65b30b77308710f14d523782f99a4a23eb55 (patch)
tree48aeeadc9e382244c08ecb286f1b56b6c302c64d /t/t9902-completion.sh
parenta92331df18112199d6aa7bee132ecf928509621c (diff)
downloadgit-bf8e65b30b77308710f14d523782f99a4a23eb55.zip
git-bf8e65b30b77308710f14d523782f99a4a23eb55.tar.gz
git-bf8e65b30b77308710f14d523782f99a4a23eb55.tar.bz2
format-patch: teach --cover-from-description option
Before, when format-patch generated a cover letter, only the body would be populated with a branch's description while the subject would be populated with placeholder text. However, users may want to have the subject of their cover letter automatically populated in the same way. Teach format-patch to accept the `--cover-from-description` option and corresponding `format.coverFromDescription` config, allowing users to populate different parts of the cover letter (including the subject now). Signed-off-by: Denton Liu <liu.denton@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t9902-completion.sh')
-rwxr-xr-xt/t9902-completion.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/t/t9902-completion.sh b/t/t9902-completion.sh
index 75512c3..5187e2e 100755
--- a/t/t9902-completion.sh
+++ b/t/t9902-completion.sh
@@ -1548,7 +1548,10 @@ test_expect_success 'complete tree filename with metacharacters' '
'
test_expect_success PERL 'send-email' '
- test_completion "git send-email --cov" "--cover-letter " &&
+ test_completion "git send-email --cov" <<-\EOF &&
+ --cover-from-description=Z
+ --cover-letter Z
+ EOF
test_completion "git send-email ma" "master "
'