summaryrefslogtreecommitdiff
path: root/doc/man
diff options
context:
space:
mode:
authorLevente Polyak <anthraxx@archlinux.org>2022-08-22 00:42:56 +0200
committerLevente Polyak <anthraxx@archlinux.org>2022-08-31 02:26:47 +0200
commit70a3041ff8b1cb85f14dc565d225b3f5ffd8b1d8 (patch)
tree4b9057d226c1ad05c99a127bbc12444d414db2e1 /doc/man
parentba070f1ca9b0dd60567a61c0c3cdb287165246be (diff)
downloaddevtools-70a3041ff8b1cb85f14dc565d225b3f5ffd8b1d8.tar.xz
diffpkg: allow to set column width for side-by-side view
The magic values `columns` and `auto` allow to set specific aspects, with 'auto' as the default value: - auto: Set width to the maximum line length of all input files - columns: Set width to the shell defined $COLUMNS env var Furthermore any number can be passed to set a static width.
Diffstat (limited to 'doc/man')
-rw-r--r--doc/man/diffpkg.1.asciidoc4
1 files changed, 4 insertions, 0 deletions
diff --git a/doc/man/diffpkg.1.asciidoc b/doc/man/diffpkg.1.asciidoc
index ec89f89..69e0c27 100644
--- a/doc/man/diffpkg.1.asciidoc
+++ b/doc/man/diffpkg.1.asciidoc
@@ -48,6 +48,10 @@ Output Options
*-y, --side-by-side*::
Output in two columns
+*-W, --width*[='NUM']::
+ Output at most 'NUM' (default `'auto'`) print columns; 'NUM' can be `'auto'`, `'columns'` or a number.
+ `'auto'` will be resolved to the maximum line length of both files, guaranteeing the diff to be uncut.
+
Modes
-----