]> git.ipfire.org Git - thirdparty/git.git/commit
format-patch: rename --cover-letter-format option
authorMirko Faina <mroik@delayed.space>
Mon, 23 Mar 2026 16:57:30 +0000 (17:57 +0100)
committerJunio C Hamano <gitster@pobox.com>
Mon, 23 Mar 2026 20:06:58 +0000 (13:06 -0700)
commit67ea2ad7d1b006194762cbfcc0b7801ffe652ca4
treeba32e5ceaf94c19646bbc9382cdddf5c24aa5171
parent3482b4278793f3adb1fa811dd30c637563ca9cec
format-patch: rename --cover-letter-format option

To align the name of the configuration variable and the name of the
command line option, either one should change name. By changing the name
of the option we get the added benefit of having --cover-<TAB> expand to
--cover-letter without ambiguity.

If the user gives the --cover-letter-format option it would be
reasonable to expect that the user wants to generate the cover letter
despite not giving --cover-letter.

Rename --cover-letter-format to --commit-list-format and make it imply
--cover-letter unless --no-cover-letter is given.

Signed-off-by: Mirko Faina <mroik@delayed.space>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git-format-patch.adoc
builtin/log.c
t/t4014-format-patch.sh
t/t9902-completion.sh