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

Re: [PATCH] Bisect: add checks at the beginning of "git bisect run".

From
Christian Couder <chriscool@tuxfamily.org>
Date
Mar 29, 2007, 05:02 UTC
Message-ID
<200703290702.47972.chriscool@tuxfamily.org>
In-Reply-To
<7vbqidls13.fsf@assigned-by-dhcp.cox.net>
Le mercredi 28 mars 2007 09:57, Junio C Hamano a écrit :
Show 11 quoted lines
>
> In other words, the above would be equilvalent to
>
>   git bisect start
>   git bisect good nightly_2007_03_27
>   make >/dev/null || {
> 	  git bisect bad
>           git bisect run make >/dev/null
>           # extract commit and author email address from
> "$GIT_DIR/BISECT_RUN" # and send flame to author who broke the build with
> the commit }
Yes, it would be equivalent but a little shorter.

So while we are at it, what about a new subcommand "git bisect test" that could be used like this:

git bisect test good_rev my_script
equivalent to the following :
my_script || {
	git bisect start &&
	git bisect bad &&
	git bisect good good_rev &&
	git bisect run my_script
}
that could be used like this:
git bisect test good_rev my_script || {
	echo >&2 "my_script failed but 'git bisect test' failed too"
	exit 1
}
test -f "$GIT_DIR/BISECT_RUN" && {
	# extract commit and author email address from
	# "$GIT_DIR/BISECT_RUN" and send flames
	git bisect reset
}

Thanks, Christian.

Previous: Junio C HamanoNext: Junio C Hamano
Message 10 of 13 in “Bisect: add checks at the beginning of "git bisect run".”
  1. Bisect: add checks at the beginning of "git bisect run".Christian Couder, Mar 27, 2007
  2. Junio C HamanoMar 27, 2007
  3. Christian CouderMar 27, 2007
  4. Junio C HamanoMar 27, 2007
  5. Junio C HamanoMar 27, 2007
  6. Christian CouderMar 28, 2007
  7. Junio C HamanoMar 28, 2007
  8. Christian CouderMar 28, 2007
  9. Junio C HamanoMar 28, 2007
  10. Christian CouderMar 29, 2007
  11. Junio C HamanoMar 29, 2007
  12. Christian CouderApr 5, 2007
  13. Christian CouderApr 5, 2007

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.