diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2012-03-01 13:26:45 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2012-03-01 09:15:47 -0800 |
commit | 969fe57b844a514747c1d5d66e0698dc53ed473d (patch) | |
tree | 67d4ade9fcabea5bbdd2bb7bc6e7da26358bf25e /Documentation/diff-options.txt | |
parent | c4432d5511f2897b56cd921632c86c1e2ca78159 (diff) | |
download | git-969fe57b844a514747c1d5d66e0698dc53ed473d.tar.gz git-969fe57b844a514747c1d5d66e0698dc53ed473d.tar.xz |
diff --stat: enable limiting of the graph part
A new option --stat-graph-width=<width> can be used to limit the width
of the graph part even is more space is available. Up to <width>
columns will be used for the graph.
If commits changing a lot of lines are displayed in a wide terminal
window (200 or more columns), and the +- graph uses the full width,
the output can be hard to comfortably scan with a horizontal movement
of human eyes. Messages wrapped to about 80 columns would be
interspersed with very long +- lines. It makes sense to limit the
width of the graph part to a fixed value (e.g. 70 columns), even if
more columns are available.
Signed-off-by: Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation/diff-options.txt')
-rw-r--r-- | Documentation/diff-options.txt | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Documentation/diff-options.txt b/Documentation/diff-options.txt index 6b9408fdd..d34efd521 100644 --- a/Documentation/diff-options.txt +++ b/Documentation/diff-options.txt @@ -59,6 +59,8 @@ endif::git-format-patch[] or 80 columns if not connected to a terminal, and can be overriden by `<width>`. The width of the filename part can be limited by giving another width `<name-width>` after a comma. + The width of the graph part can be limited by using + `--stat-graph-width=<width>`. By giving a third parameter `<count>`, you can limit the output to the first `<count>` lines, followed by `...` if there are more. |