diff options
author | Philip Oakley <philipoakley@iee.email> | 2023-01-19 18:18:24 +0000 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2023-01-19 14:35:15 -0800 |
commit | 8bcb8f8e2282ff27f7ffd106eb2fb7bf982ff2d1 (patch) | |
tree | 4927cbe9208c65e02fc18012070ee75db881b95a /Documentation/pretty-formats.txt | |
parent | d664a7ad20f9cb013f4c53654b76973612a89991 (diff) | |
download | git-8bcb8f8e2282ff27f7ffd106eb2fb7bf982ff2d1.tar.gz |
doc: pretty-formats: delineate `%<|(` parameter values
Commit a57523428b4 (pretty: support padding placeholders, %< %> and %><,
2013-04-19) introduced column width place holders. It also added
separate column position `%<|(` placeholders for display screen based
placement.
Change the display screen parameter reference from 'N' to 'M' and
corresponding descriptives to make the distinction clearer.
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.txt | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/Documentation/pretty-formats.txt b/Documentation/pretty-formats.txt index 02bec23509..8cc1072196 100644 --- a/Documentation/pretty-formats.txt +++ b/Documentation/pretty-formats.txt @@ -147,7 +147,7 @@ The placeholders are: '%w([<w>[,<i1>[,<i2>]]])':: switch line wrapping, like the -w option of linkgit:git-shortlog[1]. '%<( <N> [,trunc|ltrunc|mtrunc])':: make the next placeholder take at - least N columns, padding spaces on + least N column widths, padding spaces on the right if necessary. Optionally truncate at the beginning (ltrunc), the middle (mtrunc) or the end @@ -155,18 +155,18 @@ The placeholders are: N columns. Note 1: that truncating only works correctly with N >= 2. - Note 2: spaces around the N + Note 2: spaces around the N and M (see below) values are optional. -'%<|( <N> )':: make the next placeholder take at least until Nth - columns, padding spaces on the right if necessary -'%>( <N> )', '%>|( <N> )':: similar to '%<( <N> )', '%<|( <N> )' respectively, +'%<|( <M> )':: make the next placeholder take at least until Mth + display column, padding spaces on the right if necessary +'%>( <N> )', '%>|( <M> )':: similar to '%<( <N> )', '%<|( <M> )' respectively, but padding spaces on the left -'%>>( <N> )', '%>>|( <N> )':: similar to '%>( <N> )', '%>|( <N> )' +'%>>( <N> )', '%>>|( <M> )':: similar to '%>( <N> )', '%>|( <M> )' respectively, except that if the next placeholder takes more spaces than given and there are spaces on its left, use those spaces -'%><( <N> )', '%><|( <N> )':: similar to '%<( <N> )', '%<|( <N> )' +'%><( <N> )', '%><|( <M> )':: similar to '%<( <N> )', '%<|( <M> )' respectively, but padding both sides (i.e. the text is centered) |