Skip to content

Commit e2e2bf2

Browse files
committed
Merge branch 'tb/delimit-pretty-trailers-args-with-comma'
Doc updates. * tb/delimit-pretty-trailers-args-with-comma: docs/pretty-formats: mention commas in %(trailers) syntax
2 parents 54b1335 + 5a03360 commit e2e2bf2

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

Documentation/pretty-formats.txt

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -204,11 +204,13 @@ endif::git-rev-list[]
204204
than given and there are spaces on its left, use those spaces
205205
- '%><(<N>)', '%><|(<N>)': similar to '% <(<N>)', '%<|(<N>)'
206206
respectively, but padding both sides (i.e. the text is centered)
207-
- %(trailers): display the trailers of the body as interpreted by
208-
linkgit:git-interpret-trailers[1]. If the `:only` option is given,
209-
omit non-trailer lines from the trailer block. If the `:unfold`
210-
option is given, behave as if interpret-trailer's `--unfold` option
211-
was given. E.g., `%(trailers:only:unfold)` to do both.
207+
- %(trailers[:options]): display the trailers of the body as interpreted
208+
by linkgit:git-interpret-trailers[1]. The `trailers` string may be
209+
followed by a colon and zero or more comma-separated options. If the
210+
`only` option is given, omit non-trailer lines from the trailer block.
211+
If the `unfold` option is given, behave as if interpret-trailer's
212+
`--unfold` option was given. E.g., `%(trailers:only,unfold)` to do
213+
both.
212214

213215
NOTE: Some placeholders may depend on other options given to the
214216
revision traversal engine. For example, the `%g*` reflog options will

0 commit comments

Comments
 (0)