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

Re: [RFC/PATCH 0/3] use '--bisect-refs' as bisect rev machinery option

From
Christian Couder <chriscool@tuxfamily.org>
Date
Nov 5, 2009, 05:22 UTC
Message-ID
<200911050622.27159.chriscool@tuxfamily.org>
In-Reply-To
<7vtyxaez4f.fsf@alter.siamese.dyndns.org>
On Wednesday 04 November 2009, Junio C Hamano wrote:
Show 18 quoted lines
> Christian Couder <chriscool@tuxfamily.org> writes:
> > So to do that you would use "git bisect start ..." and then you could
> > use:
> >
> > $ git rev-list --bisect HEAD --not $GOOD_COMMITS
> >
> > to get the commit that you would have to test if the current commit is
> > bad and:
> >
> > $ git rev-list --bisect  $BAD --not $GOOD_COMMITS HEAD
> >
> > to get the commit that you would have to test if the current commit is
> > good.
>
> Even in that case, the problem is still about narrowing the set of the
> current bisection graph.  If --bisect option implicitly grabs good and
> bad defined in the refspace like Linus's patch does, it will give you the
> same behaviour of the above two commands, no?

I think it will probably work when you add a good rev, but in the case where you give a different bad (the first command above) it does not work the same.

The test case in patch 1/3 shows that. It does:

git bisect start $HASH7 $HASH1 && ... rev_list2=$(git rev-list --bisect $HASH3 --not $HASH1) && test "$rev_list2" = "$HASH2"

and that last command fails.

Best regards, Christian.

Previous: Junio C Hamano
Message 11 of 11 in “use '--bisect-refs' as bisect rev machinery option”
  1. 0/3 use '--bisect-refs' as bisect rev machinery optionChristian Couder, Nov 4, 2009
  2. 1/3 t6030: show "rev-list --bisect" breakage when bisectingChristian Couder, Nov 4, 2009
  3. 2/3 revision: change '--bisect' rev machinery argument to 'bisect-refs'Christian Couder, Nov 4, 2009
  4. 3/3 bisect: simplify calling visualizer using '--bisect-refs'Christian Couder, Nov 4, 2009
  5. Junio C HamanoNov 4, 2009
  6. Linus TorvaldsNov 4, 2009
  7. Linus TorvaldsNov 4, 2009
  8. Junio C HamanoNov 4, 2009
  9. Christian CouderNov 4, 2009
  10. Junio C HamanoNov 4, 2009
  11. Christian CouderNov 5, 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.