diff options
author | Denton Liu <liu.denton@gmail.com> | 2019-10-15 12:06:40 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2019-10-16 04:26:45 +0300 |
commit | bf8e65b30b77308710f14d523782f99a4a23eb55 (patch) | |
tree | 48aeeadc9e382244c08ecb286f1b56b6c302c64d /t/t9902-completion.sh | |
parent | a92331df18112199d6aa7bee132ecf928509621c (diff) |
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-x | t/t9902-completion.sh | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/t/t9902-completion.sh b/t/t9902-completion.sh index 75512c3403..5187e2ede5 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 " ' |