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

Re: [PATCH 2/2] git-bisect: allow bisecting with only one bad commit.

From
Christian Couder <chriscool@tuxfamily.org>
Date
Apr 17, 2007, 05:07 UTC
Message-ID
<200704170707.10938.chriscool@tuxfamily.org>
In-Reply-To
<7v7isqkoa3.fsf_-_@assigned-by-dhcp.cox.net>
Hi Junio,
You wrote:
[...]
Show 16 quoted lines
> -test_expect_success 'bisect does not start with only one bad' '
> +test_expect_success 'bisect starts with only one bad' '
>  	git bisect reset &&
>  	git bisect start &&
> -	git bisect bad $HASH4 || return 1
> -
> -	if git bisect next
> -	then
> -		echo Oops, should have failed.
> -		false
> -	else
> -		:
> -	fi
> +	git bisect bad $HASH4 &&
> +	git bisect next
>  '
Ok, this is the purpose of your patch to make the above work.
Show 5 quoted lines
> -test_expect_success 'bisect does not start with only one good' '
> +test_expect_success 'bisect starts with only one good' '
>  	git bisect reset &&
>  	git bisect start &&
>  	git bisect good $HASH1 || return 1

But I don't understand the need to change the above comment when the test code for starting with one good commit is not changed.

Thanks, Christian.

Previous: Junio C HamanoNext: Junio C Hamano
Message 7 of 9 in “Bisect: teach "bisect start" to optionally use one bad and many good revs.”
  1. Bisect: teach "bisect start" to optionally use one bad and many good revs.Christian Couder, Apr 1, 2007
  2. Junio C HamanoApr 3, 2007
  3. Bisect: teach "bisect start" to optionally use one bad and many good revs.Christian Couder, Apr 4, 2007
  4. Documentation: bisect: "start" accepts one bad and many good commitsChristian Couder, Apr 5, 2007
  5. Junio C HamanoApr 5, 2007
  6. 2/2 git-bisect: allow bisecting with only one bad commit.Junio C Hamano, Apr 6, 2007
  7. Christian CouderApr 17, 2007
  8. Junio C HamanoApr 17, 2007
  9. 1/2 t6030: add a bit more tests to git-bisectJunio C Hamano, Apr 6, 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.