summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 666c92a)
raw | patch | inline | side by side (parent: 666c92a)
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | |
Thu, 1 Mar 2012 12:26:41 +0000 (13:26 +0100) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Thu, 1 Mar 2012 17:14:00 +0000 (09:14 -0800) |
Make log --stat behave like diff --stat and use the full terminal
width.
Signed-off-by: Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
width.
Signed-off-by: Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/log.c | patch | blob | history | |
t/t4052-stat-output.sh | patch | blob | history |
diff --git a/builtin/log.c b/builtin/log.c
index d37ae2606ec4ecc9104233aaba64e72c5f49d538..075a427b71326a26ab7d2fcd2d18bd11bbfa72ec 100644 (file)
--- a/builtin/log.c
+++ b/builtin/log.c
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 56d3899d92a80b1683490125252e0e42bc42e646..f81d427db554354585f9b244e1b1115e094777b5 100755 (executable)
--- a/t/t4052-stat-output.sh
+++ b/t/t4052-stat-output.sh
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'
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'