diff options
author | Junio C Hamano <gitster@pobox.com> | 2012-03-01 13:26:38 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2012-03-01 09:12:02 -0800 |
commit | 31c2373d39558f98222a1fd8b83ed74ccaa87161 (patch) | |
tree | 73bbcad456911130f12d0477688c7c419597fdfe /builtin | |
parent | Merge branches zj/decimal-width, zj/term-columns and jc/diff-stat-scaler (diff) | |
download | tgif-31c2373d39558f98222a1fd8b83ed74ccaa87161.tar.xz |
diff --stat: tests for long filenames and big change counts
In preparation for updates to the "diff --stat" that updates the logic
to split the allotted columns into the name part and the graph part to
make the output more readable, add a handful of tests to document the
corner case behaviour in which long filenames and big changes are shown.
When a pathname is so long that it cannot fit on the column, the current
code truncates it to make sure that the graph part has enough room to show
a meaningful graph. If the actual change is small (e.g. only one line
changed), this results in the final output that is shorter than the width
we aim for.
Signed-off-by: Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin')
0 files changed, 0 insertions, 0 deletions