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

Re: git-rev-list: "--bisect" flag

From
Jon Seymour <jon.seymour@gmail.com>
Date
Jun 19, 2005, 04:07 UTC
Message-ID
<2cfc40320506182107755d1b3e@mail.gmail.com>
In-Reply-To
<20050619033821.GB24982@delft.aura.cs.cmu.edu>
On 6/19/05, Jan Harkes <jaharkes@cs.cmu.edu> wrote:
Show 12 quoted lines
> On Sun, Jun 19, 2005 at 10:18:45AM +1000, Jon Seymour wr
> A was known good, parallel development for commits B and C, finally
> merged into D. A bug got introduced in B, which we discover by the time
> we have a checked out copy of D.
> 
>      .--- B ---.
>     /           \
>    A             D
>     \           /
>      `--- C ---'
> 
> git-rev-list E ^A shows this as BCD. Pick the halfway point C, and this
I assume you mean git-rev-list D ^A
> one checks out ok. So at this point we would decide that the bug got
> introduced by the C->D change.

I think you misunderstood the intent of my original question which was implicitly referring to the implementation of the bisection algorithm, not to the bug blatt algorithm that makes use of the bisection algorithm.

My actual question was: "Why is the bisection algorithm itself the way it is? "

A simple bisection algorithm which simply chooses the middle of the git-rev-list output chooses a point which one could in principle argue is as good as the one chosen by the current bisection algorithm. However, I must admit that I don't quite understand the subtleties of Linus' bisection algorithm, hence the question - why is his bisection algorithm better than simply choosing the literal middle?

I'll post a patch that I have already sent to Linus which demonstrates an implementation of --bisect that chooses the literal middle. This patch also includes a demonstration of Linus' binary bug blatting technique (see t/t6001-rev-list-merge-order.sh)

jon.
Previous: Jan HarkesNext: Linus Torvalds
Message 4 of 19 in “git-rev-list: "--bisect" flag”
  1. Linus TorvaldsJun 18, 2005
  2. Jon SeymourJun 19, 2005
  3. Jan HarkesJun 19, 2005
  4. Jon SeymourJun 19, 2005
  5. Linus TorvaldsJun 19, 2005
  6. Linus TorvaldsJun 19, 2005
  7. David LangJun 19, 2005
  8. Linus TorvaldsJun 19, 2005
  9. Jon SeymourJun 19, 2005
  10. Jon SeymourJun 19, 2005
  11. Linus TorvaldsJun 19, 2005
  12. Ingo MolnarJun 19, 2005
  13. Linus TorvaldsJun 19, 2005
  14. Jon SeymourJun 19, 2005
  15. Linus TorvaldsJun 20, 2005
  16. Jon SeymourJun 20, 2005
  17. Jon SeymourJun 20, 2005
  18. Jon SeymourJun 20, 2005
  19. Jon SeymourJun 20, 2005

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.