Lucian Poston <lucian.poston@xxxxxxxxx> 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 <lucian.poston@xxxxxxxxx> > --- > 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? -- 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