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

[PATCH] bisect: simplify calling visualizer using '--bisect' option

From
Christian Couder <chriscool@tuxfamily.org>
Date
Nov 23, 2009, 04:16 UTC
Message-ID
<20091123041615.4361.52673.chriscool@tuxfamily.org>

In commit ad3f9a7 (Add '--bisect' revision machinery argument) the '--bisect' option was added to easily pass bisection refs to commands using the revision machinery.

So it is now shorter and safer to use the new '--bisect' revision machinery option, than to compute the refs that we must pass.

Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
---
 git-bisect.sh |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
	This patch was previously sent in an RFC series aimed at
	using '--bisect-refs' instead of '--bisect' as the revision
	machinery bisect option.
diff --git a/git-bisect.sh b/git-bisect.sh
index 8b3c585..a5ea843 100755
--- a/git-bisect.sh
+++ b/git-bisect.sh
@@ -300,8 +300,7 @@ bisect_visualize() {
 		esac
 	fi
 
-	not=$(git for-each-ref --format='%(refname)' "refs/bisect/good-*")
-	eval '"$@"' refs/bisect/bad --not $not -- $(cat "$GIT_DIR/BISECT_NAMES")
+	eval '"$@"' --bisect -- $(cat "$GIT_DIR/BISECT_NAMES")
 }
 
 bisect_reset() {
-- 
1.6.5.1.gaf97d
Message 1 of 1 in “bisect: simplify calling visualizer using '--bisect' option”
  1. bisect: simplify calling visualizer using '--bisect' optionChristian Couder, Nov 23, 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.