summaryrefslogtreecommitdiff
path: root/builtin/log.c
diff options
context:
space:
mode:
authorLibravatar Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2012-03-01 13:26:40 +0100
committerLibravatar Junio C Hamano <gitster@pobox.com>2012-03-01 09:13:53 -0800
commit666c92a229de10f8bbfc33cf6f92aad8733f0002 (patch)
tree760f945f90262487c29928638ba05bc3f9219444 /builtin/log.c
parentdiff --stat: use the full terminal width (diff)
downloadtgif-666c92a229de10f8bbfc33cf6f92aad8733f0002.tar.xz
show --stat: use the full terminal width
Make show --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>
Diffstat (limited to 'builtin/log.c')
-rw-r--r--builtin/log.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/builtin/log.c b/builtin/log.c
index 7d1f6f88a0..d37ae2606e 100644
--- a/builtin/log.c
+++ b/builtin/log.c
@@ -447,6 +447,8 @@ int cmd_show(int argc, const char **argv, const char *prefix)
rev.diff = 1;
rev.always_show_header = 1;
rev.no_walk = 1;
+ rev.diffopt.stat_width = -1; /* Scale to real terminal size */
+
memset(&opt, 0, sizeof(opt));
opt.def = "HEAD";
opt.tweak = show_rev_tweak_rev;