git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH] rev-list: fix showing distance when using --bisect-all

From
Christian Couder <chriscool@tuxfamily.org>
Date
Feb 8, 2009, 14:54 UTC
Message-ID
<20090208155447.a56eeb26.chriscool@tuxfamily.org>

Since commit d467a52 ("Make '--decorate' set an explicit 'show_decorations' flag", Nov 3 2008), "git rev-list --bisect-all" doesn't show the distance any more when displaying the best bisection commits.

For example:
$ git rev-list --bisect-all HEAD --not HEAD^
gives:
621f1b4bcf40f1469fc59202248df35619e33c82
instead of:
621f1b4bcf40f1469fc59202248df35619e33c82 (dist=0)
This patch fixes that.
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
---
 builtin-rev-list.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/builtin-rev-list.c b/builtin-rev-list.c
index 857742a..436afa4 100644
--- a/builtin-rev-list.c
+++ b/builtin-rev-list.c
@@ -608,6 +608,7 @@ int cmd_rev_list(int argc, const char **argv, const char *prefix)
 		if (!strcmp(arg, "--bisect-all")) {
 			bisect_list = 1;
 			bisect_find_all = 1;
+			revs.show_decorations = 1;
 			continue;
 		}
 		if (!strcmp(arg, "--bisect-vars")) {
-- 
1.6.2.rc0.dirty
Message 1 of 1 in “rev-list: fix showing distance when using --bisect-all”
  1. rev-list: fix showing distance when using --bisect-allChristian Couder, Feb 8, 2009

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.