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

GIT BISECT old/new (fix/unfixed)

From
Antoine Delaite <antoine.delaite@ensimag.grenoble-inp.fr>
Date
Jun 1, 2015, 14:24 UTC
Message-ID
<1363968792.246885.1433168658027.JavaMail.zimbra@ensimag.grenoble-inp.fr>
In-Reply-To
<1762682958.245864.1433168080478.JavaMail.zimbra@ensimag.grenoble-inp.fr>
Hi,

git bisect old/new is an alternative to good/bad, which can be confusing to use in some situations.

A work on it was done a few years ago, it is partially working but there are a lot of issues.

We based on Christian Couder's github: https://github.com/chriscool/git/commits/boldnew2

We're currently working on it again. Older discussions lead to this state: 
Show 9 quoted lines
>Some commands are still not available for old/new: 
> 
> * git bisect start [<new> [<old>...]] is not possible: the commits 
> will be treated as bad and good. 
> * git rev-list --bisect does not treat the revs/bisect/new and 
> revs/bisect/old-SHA1 files. 
> * thus, git bisect run <cmd> is not available for new/old. 
> * git bisect visualize seem to work partially: the tags are displayed 
> correctly but the tree is not limited to the bisect section. 

We did some testing with git bisect old/new and found that it was quite working, returning the commit that introduces the fix.

We noticed an other error once the bisection is finished : fatal: 'refs/bisect/bad' - not a valid ref

We did not understand why git bisect run is supposed not to work with old/new. The only thing is that the script has to return 0 if the version is old, which seems to work like in good/bad mode. This should be modified if the user wants to use the same script to find a fix or a regression (without changing the return value each time).

Antoine D 
Message 1 of 1 in “GIT BISECT old/new (fix/unfixed)”
  1. Antoine DelaiteJun 1, 2015

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.