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

Re: rfe: bisecting with a tristate

From
Sean <seanlkml@sympatico.ca>
Date
Jul 24, 2007, 13:40 UTC
Message-ID
<20070724094017.d14688e5.seanlkml@sympatico.ca>
In-Reply-To
<Pine.LNX.4.64.0707241459460.18990@fbirervta.pbzchgretzou.qr>

On Tue, 24 Jul 2007 15:21:19 +0200 (CEST) Jan Engelhardt <jengelh@computergmbh.de> wrote:

Hi Jan,
Show 13 quoted lines
> I have an idea about handling commits that do not compile at 
> all in git-bisect.
> For example:
> 
> git bisect start
> git bisect bad v2.6.23-rc1
> # bad: [f695baf2df9e0413d3521661070103711545207a] Linux 2.6.23-rc1
> git bisect good v2.6.22
> # good: [098fd16f00005f665d3baa7e682d8cb3d7c0fe6f] Linux 2.6.22
> 
> Then 1f1c2881f673671539b25686df463518d69c4649 will be the next commit 
> git bisect hands out. Now let's assume this commit would not compile. 
> What would the user do? git-bisect good or git-bisect bad?

Check out the section "Avoiding to test a commit" in the git-bisect man page; it addresses this issue. Basically you just use git-reset to pick a different nearby commit to compile, and then continue with git bisect good/bad.

Show 11 quoted lines
> 
> Assume a commit previous to 1f..49 caused an oops (but the user does not 
> know yet), and the user said 'good' on 1f..49 because he did not know 
> what to say (since it did not compile). Then bisect would go the wrong 
> way, marking all left to 1f..49 as good.
> 
> Ideally, there should be like "git bisect dunno-try-left" and "git 
> bisect dunno-try-right", which allow the user to skip checking 1f..49 
> and instead try the next commit left or right of 1f..49 (to either go to 
> a commit before the compile failure, or after it).
>
Sean
Previous: Jan EngelhardtNext: Johannes Schindelin
Message 2 of 6 in “rfe: bisecting with a tristate”
  1. Jan EngelhardtJul 24, 2007
  2. SeanJul 24, 2007
  3. Johannes SchindelinJul 24, 2007
  4. Robin RosenbergJul 24, 2007
  5. Johannes SchindelinJul 24, 2007
  6. Robin RosenbergJul 24, 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.