Merge branch 'tr/maint-show-walk' into maint
"git show"'s auto-walking behaviour was an unreliable and unpredictable hack; it now behaves just like "git log" does when it walks. * tr/maint-show-walk: show: fix "range implies walking" Demonstrate git-show is broken with ranges
This commit is contained in:
@ -462,6 +462,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++) {
|
||||
|
||||
Reference in New Issue
Block a user