Add test to verify that the commit graph tree output is taken into consideration when the diff stat output width is calculated. Signed-off-by: Lucian Poston <lucian.poston@xxxxxxxxx> --- t/t4052-stat-output.sh | 20 ++++++++++++++++++++ 1 files changed, 20 insertions(+), 0 deletions(-) diff --git a/t/t4052-stat-output.sh b/t/t4052-stat-output.sh index c95f120..84dd8bb 100755 --- a/t/t4052-stat-output.sh +++ b/t/t4052-stat-output.sh @@ -198,6 +198,26 @@ respects expect200 show --stat respects expect200 log -1 --stat EOF +cat >expect80graphed <<'EOF' +| ...aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa | 1000 +++++++++++++++++++++++++ +EOF +cat >expect80 <<'EOF' + ...aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa | 1000 ++++++++++++++++++++++++++ +EOF +while read verb expect cmd args +do + test_expect_success "$cmd $verb 80 COLUMNS (long filename)" ' + COLUMNS=80 git $cmd $args >output + grep " | " output >actual && + test_cmp "$expect" actual + ' +done <<\EOF +respects expect80 show --stat +respects expect80 log -1 --stat +respects expect80graphed show --stat --graph +respects expect80graphed log -1 --stat --graph +EOF + cat >expect <<'EOF' abcd | 1000 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ EOF -- 1.7.3.4 -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html