diff --stat: use the full terminal width
[gitweb.git] / builtin / diff.c
index 387afa75680d813bccd5493e5946600c08679890..81b6baec7472ff34c8ee5c9630f697f9897bd747 100644 (file)
@@ -285,6 +285,9 @@ int cmd_diff(int argc, const char **argv, const char *prefix)
        /* Otherwise, we are doing the usual "git" diff */
        rev.diffopt.skip_stat_unmatch = !!diff_auto_refresh_index;
 
+       /* Scale to real terminal size */
+       rev.diffopt.stat_width = -1;
+
        /* Default to let external and textconv be used */
        DIFF_OPT_SET(&rev.diffopt, ALLOW_EXTERNAL);
        DIFF_OPT_SET(&rev.diffopt, ALLOW_TEXTCONV);