From: Philip Oakley Date: Thu, 19 Jan 2023 18:18:25 +0000 (+0000) Subject: doc: pretty-formats document negative column alignments X-Git-Tag: v2.40.0-rc0~45^2~2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=63792c564c3a96007baf7ce876dea0a6f5f9f880;p=thirdparty%2Fgit.git doc: pretty-formats document negative column alignments Commit 066790d7cb0 (pretty.c: support |() 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 Signed-off-by: Junio C Hamano --- 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. '%<|( )':: 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. '%>( )', '%>|( )':: similar to '%<( )', '%<|( )' respectively, but padding spaces on the left '%>>( )', '%>>|( )':: similar to '%>( )', '%>|( )'