From: Junio C Hamano Date: Mon, 16 Apr 2012 18:48:22 GMT Subject: Re: [PATCH v3 4/7] t4052: Adjust --graph --stat output for prefixes Message-ID: <7vzkabtsw9.fsf@alter.siamese.dyndns.org> In-Reply-To: <1334573095-32286-5-git-send-email-lucian.poston@gmail.com> Lucian Poston writes: > Adjust tests to verify that the commit history graph tree is taken into > consideration when the diff stat output width is calculated. > > Signed-off-by: Lucian Poston > --- > t/t4052-stat-output.sh | 34 +++++++++++++++++++++++++--------- > 1 files changed, 25 insertions(+), 9 deletions(-) > > diff --git a/t/t4052-stat-output.sh b/t/t4052-stat-output.sh > index da14984..d748e5e 100755 > --- a/t/t4052-stat-output.sh > +++ b/t/t4052-stat-output.sh > @@ -89,7 +89,7 @@ cat >expect200 <<'EOF' > abcd | 1000 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ > EOF > cat >expect200-graph <<'EOF' > -| abcd | 1000 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ > +| abcd | 1000 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ > EOF This change is easily explainable. Earlier, the code did not take the "| " part at the very left end (i.e. ancestry graph) and drew the --stat output too wide by two columns, but now the code is updated to compensate for that, because "200" is coming from COLUMNS to clip the whole width, not just the stat-width part. > while read verb expect cmd args > do > @@ -117,7 +117,7 @@ cat >expect40 <<'EOF' > abcd | 1000 ++++++++++++++++++++++++++ > EOF > cat >expect40-graph <<'EOF' > -| abcd | 1000 ++++++++++++++++++++++++++ > +| abcd | 1000 ++++++++++++++++++++++++ > EOF Likewise. > while read verb expect cmd args > do > @@ -127,12 +127,6 @@ do > test_cmp "$expect" actual > ' > > - test_expect_success "$cmd $verb statGraphWidth config" ' > - git -c diff.statGraphWidth=26 $cmd $args >output > - grep " | " output >actual && > - test_cmp "$expect" actual > - ' > - This is unclear. Why does this need to be removed?