[PATCH v3 4/8] docs/pretty-formats: add %(count) and %(total)
- From
Mirko Faina <mroik@delayed.space>
- Date
- Mar 23, 2026, 16:57 UTC
- Message-ID
- <ce7d1bd1fefc63bf625eb88a1b9d73d77af4c4ae.1774284699.git.mroik@delayed.space>
- In-Reply-To
- <cover.1774284699.git.mroik@delayed.space>
When --commit-list-format was introduced to format-patch, two new placeholders were added to the PRETTY FORMATS code without being documented. Do so now.
Signed-off-by: Mirko Faina <mroik@delayed.space> --- Documentation/pretty-formats.adoc | 4 ++++ 1 file changed, 4 insertions(+)
diff --git a/Documentation/pretty-formats.adoc b/Documentation/pretty-formats.adoc index 5405e57a60..2ae0eb11a9 100644 --- a/Documentation/pretty-formats.adoc +++ b/Documentation/pretty-formats.adoc @@ -253,6 +253,10 @@ The placeholders are: linkgit:git-rev-list[1]) +%d+:: ref names, like the --decorate option of linkgit:git-log[1] +%D+:: ref names without the " (", ")" wrapping. ++%(count)+:: the number of a patch within a patch series. Used only in + `--commit-list-format` in `format-patch` ++%(total)+:: the total number of patches in a patch series. Used only in + `--commit-list-format` in `format-patch` ++%(decorate++`[:<option>,...]`++)++:: ref names with custom decorations. The `decorate` string may be followed by a colon and zero or more comma-separated options. Option values may contain
-- 2.53.0.1118.gaef5881109