From: Zbigniew Jędrzejewski-Szmek Date: Thu, 1 Mar 2012 12:26:41 +0000 (+0100) Subject: log --stat: use the full terminal width X-Git-Tag: v1.7.10-rc0~9^2~5 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=5e0ec15eb131075d0c3e61b33bcc7931bbc8bc08;p=git.git log --stat: use the full terminal width Make log --stat behave like diff --stat and use the full terminal width. Signed-off-by: Zbigniew Jędrzejewski-Szmek Signed-off-by: Junio C Hamano --- diff --git a/builtin/log.c b/builtin/log.c index d37ae2606..075a427b7 100644 --- a/builtin/log.c +++ b/builtin/log.c @@ -77,6 +77,7 @@ static void cmd_log_init_defaults(struct rev_info *rev) get_commit_format(fmt_pretty, rev); rev->verbose_header = 1; DIFF_OPT_SET(&rev->diffopt, RECURSIVE); + rev->diffopt.stat_width = -1; /* use full terminal width */ rev->abbrev_commit = default_abbrev_commit; rev->show_root_diff = default_show_root; rev->subject_prefix = fmt_patch_subject_prefix; diff --git a/t/t4052-stat-output.sh b/t/t4052-stat-output.sh index 56d3899d9..f81d427db 100755 --- a/t/t4052-stat-output.sh +++ b/t/t4052-stat-output.sh @@ -98,7 +98,7 @@ done <<\EOF ignores expect80 format-patch -1 --stdout respects expect200 diff HEAD^ HEAD --stat respects expect200 show --stat -ignores expect80 log -1 --stat +respects expect200 log -1 --stat EOF cat >expect <<'EOF' @@ -164,7 +164,7 @@ done <<\EOF ignores expect80 format-patch -1 --stdout respects expect200 diff HEAD^ HEAD --stat respects expect200 show --stat -ignores expect80 log -1 --stat +respects expect200 log -1 --stat EOF cat >expect <<'EOF'