diff options
author | Philip Oakley <philipoakley@iee.email> | 2023-01-19 18:18:26 +0000 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2023-01-19 14:35:15 -0800 |
commit | b5cd634d7a30074452c5aa3b0ce66ce794c4d565 (patch) | |
tree | a8ac44b7a5de58e252e4fa7e29eabbdf102c79cb /Documentation/pretty-formats.txt | |
parent | 63792c564c3a96007baf7ce876dea0a6f5f9f880 (diff) | |
download | git-b5cd634d7a30074452c5aa3b0ce66ce794c4d565.tar.gz |
doc: pretty-formats describe use of ellipsis in truncation
Commit a7f01c6b4d (pretty: support truncating in %>, %< and %><,
2013-04-19) added the use of ellipsis when truncating placeholder
values.
Show our 'two dot' ellipsis, and examples for the left, middle and
right truncation to avoid any confusion as to which end of the string
is adjusted. (cf justification and sub-string).
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 | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Documentation/pretty-formats.txt b/Documentation/pretty-formats.txt index cbca60a196..e51f1e54e1 100644 --- a/Documentation/pretty-formats.txt +++ b/Documentation/pretty-formats.txt @@ -149,9 +149,9 @@ The placeholders are: '%<( <N> [,trunc|ltrunc|mtrunc])':: make the next placeholder take at least N column widths, padding spaces on the right if necessary. Optionally - truncate at the beginning (ltrunc), - the middle (mtrunc) or the end - (trunc) if the output is longer than + truncate (with ellipsis '..') at the left (ltrunc) `..ft`, + the middle (mtrunc) `mi..le`, or the end + (trunc) `rig..`, if the output is longer than N columns. Note 1: that truncating only works correctly with N >= 2. |