Skip to content

Commit 3288f20

Browse files
René Scharfegitster
authored andcommitted
log --format: document %w
Signed-off-by: Rene Scharfe <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 37bb5d7 commit 3288f20

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Documentation/pretty-formats.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,10 @@ The placeholders are:
135135
- '%m': left, right or boundary mark
136136
- '%n': newline
137137
- '%x00': print a byte from a hex code
138+
- '%w([<w>[,<i1>[,<i2>]]])': switch line wrapping, like the -w option of
139+
linkgit:git-shortlog[1]. NOTE: Color placeholders (`%C*`) are not
140+
recognized as having no width, so they should not be put into wrapped
141+
sections.
138142

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

0 commit comments

Comments
 (0)