summaryrefslogtreecommitdiff
path: root/builtin
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2012-07-13 15:36:44 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2012-07-13 15:36:44 -0700
commit5d8d296c1ccf00d80a6b9096e0dc88944053912f (patch)
tree21dbcbca06f3d5c3d733f4254d46930a372a790a /builtin
parentMerge branch 'mz/rebase-no-mbox' (diff)
parentshow: fix "range implies walking" (diff)
downloadtgif-5d8d296c1ccf00d80a6b9096e0dc88944053912f.tar.xz
Merge branch 'tr/maint-show-walk'
Fixes "git show"'s auto-walking behaviour, and make it behave just like "git log" does when it walks. * tr/maint-show-walk: show: fix "range implies walking" Demonstrate git-show is broken with ranges
Diffstat (limited to 'builtin')
-rw-r--r--builtin/log.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/builtin/log.c b/builtin/log.c
index 4f1b42a685..adcbcf1f24 100644
--- a/builtin/log.c
+++ b/builtin/log.c
@@ -463,6 +463,9 @@ int cmd_show(int argc, const char **argv, const char *prefix)
opt.tweak = show_rev_tweak_rev;
cmd_log_init(argc, argv, prefix, &rev, &opt);
+ if (!rev.no_walk)
+ return cmd_log_walk(&rev);
+
count = rev.pending.nr;
objects = rev.pending.objects;
for (i = 0; i < count && !ret; i++) {