Skip to content

Commit 63792c5

Browse files
PhilipOakleygitster
authored andcommitted
doc: pretty-formats document negative column alignments
Commit 066790d (pretty.c: support <direction>|(<negative number>) forms, 2016-06-16) added the option for right justified column alignment without updating the documentation. Add an explanation of its use of negative column values. Signed-off-by: Philip Oakley <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 8bcb8f8 commit 63792c5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Documentation/pretty-formats.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,9 @@ The placeholders are:
158158
Note 2: spaces around the N and M (see below)
159159
values are optional.
160160
'%<|( <M> )':: make the next placeholder take at least until Mth
161-
display column, padding spaces on the right if necessary
161+
display column, padding spaces on the right if necessary.
162+
Use negative M values for column positions measured
163+
from the right hand edge of the terminal window.
162164
'%>( <N> )', '%>|( <M> )':: similar to '%<( <N> )', '%<|( <M> )' respectively,
163165
but padding spaces on the left
164166
'%>>( <N> )', '%>>|( <M> )':: similar to '%>( <N> )', '%>|( <M> )'

0 commit comments

Comments
 (0)