]> git.ipfire.org Git - thirdparty/git.git/commit
format-patch: teach --cover-from-description option
authorDenton Liu <liu.denton@gmail.com>
Tue, 15 Oct 2019 09:06:40 +0000 (02:06 -0700)
committerJunio C Hamano <gitster@pobox.com>
Wed, 16 Oct 2019 01:26:45 +0000 (10:26 +0900)
commitbf8e65b30b77308710f14d523782f99a4a23eb55
tree48aeeadc9e382244c08ecb286f1b56b6c302c64d
parenta92331df18112199d6aa7bee132ecf928509621c
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>
Documentation/config/format.txt
Documentation/git-format-patch.txt
builtin/log.c
t/t4014-format-patch.sh
t/t9902-completion.sh