aboutsummaryrefslogtreecommitdiff
path: root/Documentation/git-format-patch.adoc
diff options
context:
space:
mode:
authorMirko Faina <mroik@delayed.space>2026-03-07 00:34:42 +0100
committerJunio C Hamano <gitster@pobox.com>2026-03-06 17:16:44 -0800
commit6005932d95ff05541f9dbe8c49a45b7abaf7432e (patch)
tree678a6136401f1ec13977e007ee968c5e37c9b10f /Documentation/git-format-patch.adoc
parent2af59cbcf4375f4d7c61954a19244d130de0a0db (diff)
downloadgit-6005932d95ff05541f9dbe8c49a45b7abaf7432e.tar.xz
format-patch: add ability to use alt cover format
Often when sending patch series there's a need to clarify to the reviewer what's the purpose of said series, since it might be difficult to understand it from reading the commits messages one by one. "git format-patch" provides the useful "--cover-letter" flag to declare if we want it to generate a template for us to use. By default it will generate a "git shortlog" of the changes, which developers find less useful than they'd like, mainly because the shortlog groups commits by author, and gives no obvious chronological order. Give format-patch the ability to specify an alternative format spec through the "--cover-letter-format" option. This option either takes "shortlog", which is the current format, or a format spec prefixed with "log:". Example: git format-patch --cover-letter \ --cover-letter-format="log:[%(count)/%(total)] %s (%an)" HEAD~3 [1/3] this is a commit summary (Mirko Faina) [2/3] this is another commit summary (Mirko Faina) ... Signed-off-by: Mirko Faina <mroik@delayed.space> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation/git-format-patch.adoc')
0 files changed, 0 insertions, 0 deletions