[PATCH 5/8 v6] log --stat: use the full terminal width
- From
Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
- Date
- Feb 20, 2012, 21:57 UTC
- Message-ID
- <1329775034-21551-6-git-send-email-zbyszek@in.waw.pl>
- In-Reply-To
- <1329775034-21551-1-git-send-email-zbyszek@in.waw.pl>
Make log --stat behave like diff --stat and use the full terminal width.
Signed-off-by: Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> --- builtin/log.c | 1 + t/t4052-stat-output.sh | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-)
diff --git builtin/log.c builtin/log.c index d37ae26..075a427 100644 --- builtin/log.c +++ 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 t/t4052-stat-output.sh t/t4052-stat-output.sh index 91c4ba8..acc54cd 100755 --- t/t4052-stat-output.sh +++ t/t4052-stat-output.sh @@ -96,7 +96,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'
-- 1.7.9.1.353.g684b4