aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/pretty-formats.txt
diff options
context:
space:
mode:
authorPhilip Oakley <philipoakley@iee.email>2023-01-19 18:18:25 +0000
committerJunio C Hamano <gitster@pobox.com>2023-01-19 14:35:15 -0800
commit63792c564c3a96007baf7ce876dea0a6f5f9f880 (patch)
tree79a315628a9e3f6cbe6f3645f772be463c9412f6 /Documentation/pretty-formats.txt
parent8bcb8f8e2282ff27f7ffd106eb2fb7bf982ff2d1 (diff)
downloadgit-63792c564c3a96007baf7ce876dea0a6f5f9f880.tar.gz
doc: pretty-formats document negative column alignments
Commit 066790d7cb0 (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 <philipoakley@iee.email> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation/pretty-formats.txt')
-rw-r--r--Documentation/pretty-formats.txt4
1 files changed, 3 insertions, 1 deletions
diff --git a/Documentation/pretty-formats.txt b/Documentation/pretty-formats.txt
index 8cc1072196..cbca60a196 100644
--- a/Documentation/pretty-formats.txt
+++ b/Documentation/pretty-formats.txt
@@ -158,7 +158,9 @@ The placeholders are:
Note 2: spaces around the N and M (see below)
values are optional.
'%<|( <M> )':: make the next placeholder take at least until Mth
- display column, padding spaces on the right if necessary
+ display column, padding spaces on the right if necessary.
+ Use negative M values for column positions measured
+ from the right hand edge of the terminal window.
'%>( <N> )', '%>|( <M> )':: similar to '%<( <N> )', '%<|( <M> )' respectively,
but padding spaces on the left
'%>>( <N> )', '%>>|( <M> )':: similar to '%>( <N> )', '%>|( <M> )'