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

Re: git bisect; is there a way to pick only from the children of a given commit

From
Sean Estabrooks <seanlkml@sympatico.ca>
Date
Jul 1, 2009, 19:22 UTC
Message-ID
<BLU0-SMTP20683A1D7E5DEC1370D496AE2E0@phx.gbl>
In-Reply-To
<loom.20090701T170535-707@post.gmane.org>

On Wed, 1 Jul 2009 17:12:16 +0000 (UTC) Robert Stonehouse <rstonehouse@solarflare.com> wrote:

Show 20 quoted lines
>   $ git log --graph --abbrev-commit --pretty=oneline
>   * b394c57... master4
>   *   7e8d675... Merge branch 'featureB'
>   |\  
>   | * 8d87aee... featureB2
>   | * c1a8450... featureB1
>   * | 44c5601... master3
>   * |   269602a... Merge branch 'featureA'
>   |\ \  
>   | * | 91b1bbb... featureA2
>   | * | 0c15834... featureA1
>   | |/  
>   * | 1ea4a0c... master2
>   |/  
>   * 204f839... master1
> 
> Tag featureA1 was my good commit, and HEAD was the bad.
> I was surprised that git bisect was asking me to test commits on the featureB
> branch. I couldn't test the build target that was broken on branch featureB
> because it wasn't present in the code at that point.

You can exclude the featureB branch by listing at good. Git will know there is no need to test anything on that branch:

$  git bisect start HEAD featureA1 featureB2

HTH, Sean

Previous: Johannes SchindelinNext: Robert Stonehouse
Message 3 of 6 in “git bisect; is there a way to pick only from the children of a given commit”
  1. Robert StonehouseJul 1, 2009
  2. Johannes SchindelinJul 1, 2009
  3. Sean EstabrooksJul 1, 2009
  4. Robert StonehouseJul 2, 2009
  5. Christian CouderJul 3, 2009
  6. Jakub NarebskiJul 1, 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.