git-commit-vandalism/t/t5100
Zbigniew Jędrzejewski-Szmek dc801e71a7 diff --stat: use less columns for change counts
Number of columns required for change counts is now computed based on
the maximum number of changed lines instead of being fixed. This means
that usually a few more columns will be available for the filenames
and the graph.

The graph width logic is also modified to include enough space for
"Bin XXX -> YYY bytes".

If changes to binary files are mixed with changes to text files,
change counts are padded to take at least three columns. And the other
way around, if change counts require more than three columns, then
"Bin"s are padded to align with the change count. This way, the +-
part starts in the same column as "XXX -> YYY" part for binary files.
This makes the graph easier to parse visually thanks to the empty
column. This mimics the layout of diff --stat before this change.

Tests and the tutorial are updated to reflect the new --stat output.
This means either the removal of extra padding and/or the addition of
up to three extra characters to truncated filenames. One test is added
to check the graph alignment when a binary file change and text file
change of more than 999 lines are committed together.

Signed-off-by: Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2012-04-30 14:17:26 -07:00
..
.gitattributes
empty
info0001 mailinfo: cleanup extra spaces for complex 'From:' 2009-02-01 12:11:15 -08:00
info0002 t5100: mailinfo and mailsplit tests. 2006-06-17 16:26:20 -07:00
info0003
info0004
info0005 t5100: mailinfo and mailsplit tests. 2006-06-17 16:26:20 -07:00
info0006 mailinfo: do not get confused with logical lines that are too long. 2007-02-27 01:02:32 -08:00
info0007
info0008
info0009 mailinfo: feed only one line to handle_filter() for QP input 2008-02-15 22:16:34 -08:00
info0010
info0011
info0012 Revert "mailinfo: Remove only one set of square brackets" 2009-07-15 15:10:06 -07:00
info0013
info0014
info0014--scissors
info0015 git am/mailinfo: Don't look at in-body headers when rebasing 2009-11-20 23:14:02 -08:00
info0015--no-inbody-headers
info0016
info0016--no-inbody-headers
info-from.expect mailinfo: avoid violating strbuf assertion 2008-08-19 19:36:56 -07:00
info-from.in
msg0001 t5100: mailinfo and mailsplit tests. 2006-06-17 16:26:20 -07:00
msg0002 t5100: mailinfo and mailsplit tests. 2006-06-17 16:26:20 -07:00
msg0003 t5100: mailinfo and mailsplit tests. 2006-06-17 16:26:20 -07:00
msg0004 t5100: mailinfo and mailsplit tests. 2006-06-17 16:26:20 -07:00
msg0005
msg0006 mailinfo: do not get confused with logical lines that are too long. 2007-02-27 01:02:32 -08:00
msg0007
msg0008 Add a couple more test cases to the suite. 2007-03-12 23:33:41 -07:00
msg0009
msg0010
msg0011
msg0012
msg0013 mailinfo: add explicit test for mails like '<a.u.thor@example.com> (A U Thor)' 2009-01-28 15:12:24 -08:00
msg0014
msg0014--scissors am/mailinfo: Disable scissors processing by default 2009-08-26 22:22:22 -07:00
msg0015 mailinfo: do not strip leading spaces even for a header line 2010-02-19 21:55:33 -08:00
msg0015--no-inbody-headers git am/mailinfo: Don't look at in-body headers when rebasing 2009-11-20 23:14:02 -08:00
msg0016 git am/mailinfo: Don't look at in-body headers when rebasing 2009-11-20 23:14:02 -08:00
msg0016--no-inbody-headers git am/mailinfo: Don't look at in-body headers when rebasing 2009-11-20 23:14:02 -08:00
nul-b64.expect
nul-b64.in
nul-plain
patch0001
patch0002 diff --stat: use less columns for change counts 2012-04-30 14:17:26 -07:00
patch0003
patch0004
patch0005
patch0006 diff --stat: use less columns for change counts 2012-04-30 14:17:26 -07:00
patch0007 Add a couple more test cases to the suite. 2007-03-12 23:33:41 -07:00
patch0008
patch0009 mailinfo: feed only one line to handle_filter() for QP input 2008-02-15 22:16:34 -08:00
patch0010
patch0011 diff --stat: use less columns for change counts 2012-04-30 14:17:26 -07:00
patch0012 mailinfo: correctly handle multiline 'Subject:' header 2009-01-10 17:54:30 -08:00
patch0013
patch0014
patch0014--scissors
patch0015 git am/mailinfo: Don't look at in-body headers when rebasing 2009-11-20 23:14:02 -08:00
patch0015--no-inbody-headers
patch0016 git am/mailinfo: Don't look at in-body headers when rebasing 2009-11-20 23:14:02 -08:00
patch0016--no-inbody-headers git am/mailinfo: Don't look at in-body headers when rebasing 2009-11-20 23:14:02 -08:00
rfc2047-info-0001 mailinfo: tests for RFC2047 examples 2009-01-28 16:23:21 -08:00
rfc2047-info-0002 mailinfo: tests for RFC2047 examples 2009-01-28 16:23:21 -08:00
rfc2047-info-0003 mailinfo: tests for RFC2047 examples 2009-01-28 16:23:21 -08:00
rfc2047-info-0004 mailinfo: cleanup extra spaces for complex 'From:' 2009-02-01 12:11:15 -08:00
rfc2047-info-0005
rfc2047-info-0006 mailinfo: tests for RFC2047 examples 2009-01-28 16:23:21 -08:00
rfc2047-info-0007
rfc2047-info-0008
rfc2047-info-0009 mailinfo: tests for RFC2047 examples 2009-01-28 16:23:21 -08:00
rfc2047-info-0010 mailinfo: tests for RFC2047 examples 2009-01-28 16:23:21 -08:00
rfc2047-info-0011 mailinfo: tests for RFC2047 examples 2009-01-28 16:23:21 -08:00
rfc2047-samples.mbox
sample.mbox diff --stat: use less columns for change counts 2012-04-30 14:17:26 -07:00