Code

Merge gitk changes from Paul Mackerras at git://ozlabs.org/~paulus/gitk
[git.git] / t / t4052-stat-output.sh
index 9a8f62dde3116970be438911d7501c533931ebd8..328aa8f39865fb90d4b54991f158affa9cf2e1dc 100755 (executable)
@@ -112,6 +112,12 @@ do
                grep " | " output >actual &&
                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
+       '
 done <<\EOF
 ignores expect80 format-patch -1 --stdout
 respects expect40 diff HEAD^ HEAD --stat
@@ -136,6 +142,12 @@ do
                grep " | " output >actual &&
                test_cmp expect actual
        '
+
+       test_expect_success "$cmd --stat-graph--width with big change" '
+               git $cmd $args --stat-graph-width=26 >output
+               grep " | " output >actual &&
+               test_cmp expect actual
+       '
 done <<\EOF
 format-patch -1 --stdout
 diff HEAD^ HEAD --stat