Skip to content

Commit 344f00e

Browse files
Mroikgitster
authored andcommitted
docs/pretty-formats: add %(count) and %(total)
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> Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent 67ea2ad commit 344f00e

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

Documentation/pretty-formats.adoc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -253,6 +253,10 @@ The placeholders are:
253253
linkgit:git-rev-list[1])
254254
+%d+:: ref names, like the --decorate option of linkgit:git-log[1]
255255
+%D+:: ref names without the " (", ")" wrapping.
256+
+%(count)+:: the number of a patch within a patch series. Used only in
257+
`--commit-list-format` in `format-patch`
258+
+%(total)+:: the total number of patches in a patch series. Used only in
259+
`--commit-list-format` in `format-patch`
256260
++%(decorate++`[:<option>,...]`++)++::
257261
ref names with custom decorations. The `decorate` string may be followed by a
258262
colon and zero or more comma-separated options. Option values may contain

0 commit comments

Comments
 (0)