aboutsummaryrefslogtreecommitdiff
path: root/Documentation/git-format-patch.adoc
diff options
context:
space:
mode:
authorMirko Faina <mroik@delayed.space>2026-03-07 00:34:44 +0100
committerJunio C Hamano <gitster@pobox.com>2026-03-06 17:16:45 -0800
commit51ed9f7e724468b8e44a7c33946dda38a335acca (patch)
treef4b85c4b1c1f1198eb1ce57eb85b96c5a4da4582 /Documentation/git-format-patch.adoc
parentbe0ef6fcd2379ea3dc1569d6d8c360d6d59d031f (diff)
downloadgit-51ed9f7e724468b8e44a7c33946dda38a335acca.tar.xz
docs: add usage for the cover-letter fmt feature
Document the new "--cover-letter-format" option in format-patch and its related configuration variable "format.commitListFormat". 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')
-rw-r--r--Documentation/git-format-patch.adoc13
1 files changed, 13 insertions, 0 deletions
diff --git a/Documentation/git-format-patch.adoc b/Documentation/git-format-patch.adoc
index 9a7807ca71..668330a015 100644
--- a/Documentation/git-format-patch.adoc
+++ b/Documentation/git-format-patch.adoc
@@ -24,6 +24,7 @@ SYNOPSIS
[(--reroll-count|-v) <n>]
[--to=<email>] [--cc=<email>]
[--[no-]cover-letter] [--quiet]
+ [--cover-letter-format=<format-spec>]
[--[no-]encode-email-headers]
[--no-notes | --notes[=<ref>]]
[--interdiff=<previous>]
@@ -321,6 +322,17 @@ feeding the result to `git send-email`.
containing the branch description, shortlog and the overall diffstat. You can
fill in a description in the file before sending it out.
+--cover-letter-format=<format-spec>::
+ Specify the format in which to generate the commit list of the
+ patch series. This option is available if the user wants to use
+ an alternative to the default `shortlog` format. The accepted
+ values for format-spec are "shortlog" or a format string
+ prefixed with `log:`.
+ e.g. `log: %s (%an)`
+ If defined, defaults to the `format.commitListFormat` configuration
+ variable.
+ This option is relevant only if a cover letter is generated.
+
--encode-email-headers::
--no-encode-email-headers::
Encode email headers that have non-ASCII characters with
@@ -452,6 +464,7 @@ with configuration variables.
signOff = true
outputDirectory = <directory>
coverLetter = auto
+ commitListFormat = shortlog
coverFromDescription = auto
------------