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

Re: Why can't I use git-bisect to find the first *good* commit?

From
Ccode.sculptor@gmail.com <code.sculptor@gmail.com>
Date
Mar 28, 2011, 12:22 UTC
Message-ID
<1871454323-1301314947-cardhu_decombobulator_blackberry.rim.net-1749053087-@bda570.bisx.prod.on.blackberry>
In-Reply-To
<AANLkTinQ0rCw2ydisHra779r6_iSOxqRwOStpJrNbx7h@mail.gmail.com>

That's a really good point! Perhaps we should have a --invert flag? Sent from my BlackBerry device on the Rogers Wireless Network

-----Original Message-----
From: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Sender: git-owner@vger.kernel.org
Date: Mon, 28 Mar 2011 11:32:21 
To: Git Mailing List<git@vger.kernel.org>
Subject: Why can't I use git-bisect to find the first *good* commit?

Something was broken a 100 revisions ago, has now been fixed, but I want to find when it was fixed.

I'd expect this to work:
    $ git bisect start
    $ git bisect good
    $ git bisect bad HEAD~100
    Some good revs are not ancestor of the bad rev.
    git bisect cannot work properly in this case.
    Maybe you mistake good and bad revs?
But instead I have to do:
    $ git bisect start
    $ git bisect bad
    $ git bisect good HEAD~100

And then proceed to mark good revisions as bad, and bad revisions as good.

That works, but it's very confusing.

Why can't bisect just do the right thing here and accept that your more recent revesion is the good one, and the old one is the bad one? -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Previous: Andreas EricssonNext: Matthieu Moy
Message 3 of 23 in “Why can't I use git-bisect to find the first *good* commit?”
  1. Ævar Arnfjörð BjarmasonMar 28, 2011
  2. Andreas EricssonMar 28, 2011
  3. code.sculptor@gmail.comMar 28, 2011
  4. Matthieu MoyMar 28, 2011
  5. Vincent van RavesteijnMar 28, 2011
  6. Christian CouderMar 28, 2011
  7. Andrew GarberMar 28, 2011
  8. Johannes SixtMar 28, 2011
  9. Andrew GarberMar 28, 2011
  10. Matthieu MoyMar 28, 2011
  11. Andrew GarberMar 28, 2011
  12. Matthieu MoyMar 28, 2011
  13. Andrew GarberMar 28, 2011
  14. Matthieu MoyMar 28, 2011
  15. demerphqMar 28, 2011
  16. Andrew GarberMar 28, 2011
  17. Matthieu MoyMar 28, 2011
  18. Andrew GarberMar 28, 2011
  19. Jeff KingMar 28, 2011
  20. Jeff KingMar 28, 2011
  21. Matthieu MoyMar 28, 2011
  22. Andreas EricssonMar 29, 2011
  23. Michael WittenMay 22, 2011

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.