Skip to content

Commit 6e46cc0

Browse files
chriscoolgitster
authored andcommitted
rev-list: fix showing distance when using --bisect-all
Before d467a52 ("Make '--decorate' set an explicit 'show_decorations' flag", Nov 3 2008), commit decorations were shown whenever they exist, and distances stored in them by "git rev-list --bisect-all" were automatically shown. d467a52 changed the rule so that commit decorations are not shown unless rev_info explicitly asks to, with its show_decorations bit, but forgot that the ones "git rev-list --bisect-all" adds need to be shown. This patch fixes this old breakage. Signed-off-by: Christian Couder <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent b59122f commit 6e46cc0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

builtin-rev-list.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -608,6 +608,7 @@ int cmd_rev_list(int argc, const char **argv, const char *prefix)
608608
if (!strcmp(arg, "--bisect-all")) {
609609
bisect_list = 1;
610610
bisect_find_all = 1;
611+
revs.show_decorations = 1;
611612
continue;
612613
}
613614
if (!strcmp(arg, "--bisect-vars")) {

0 commit comments

Comments
 (0)