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

Re: git bisect problems/ideas

From
Christian Couder <christian.couder@gmail.com>
Date
Jan 21, 2011, 13:18 UTC
Message-ID
<AANLkTikG6Ft3Y922Aaakf28cnYs26PcRHoq9GSNj04mu@mail.gmail.com>
In-Reply-To
<0253BAE3-90F7-492C-ADF5-8B16DFFA1E44@gmail.com>
On Wed, Jan 19, 2011 at 8:44 PM, Aaron S. Meurer <asmeurer@gmail.com> wrote:
Show 15 quoted lines
>>>
>>> I don't understand how this can only be one way?  Isn't this symmetric?  In
>>> other words, how is it different from
>>>
>>> A-B-C-D-E <-- dev
>>>    \F-G <-- master
>>>
>>> as far as bisect is concerned? Or maybe I am not entirely clear on what you
>>> are saying.
>>
>> Yes, it is symmetric, so we cannot just automatically reverse the
>> meanning because there is no "after" or "before" relationship between
>> "dev" and "master".
>
> I think I understand.  What if something works in A, gets broken in C, stays broken in E, but gets fixed in G?  Should it maybe be implied by whichever one is marked as good first, A or G, if you trying to find the fix or the break?

In this case, if we are given "git bisect bad E" and "git bisect good A", yes, as A is before E, we must suppose that we are looking for the break.

But if we are given "git bisect bad E" and "git bisect good G", we have to suppose that we are looking for the break too. There are many good reasons for that:

- it's the logical default for bisect,
- if what is wanted is the fix, there has been for a long time the
possibility to just switch "bad" and "good",
- the user might not even realize that E and G have no "after" or
"before" relationship.
> If no, I think --reverse is actually a suitable fix.

Yeah, but I think that what Dscho started was probably better. The problem is just that it is not so simple to implement and no one yet has been interested enough or took enough time to finish it.

Best regards, Christian.

Previous: Aaron S. MeurerNext: Johannes Sixt
Message 15 of 17 in “git bisect problems/ideas”
  1. Aaron S. MeurerJan 15, 2011
  2. Christian CouderJan 17, 2011
  3. Jonathan NiederJan 17, 2011
  4. SZEDER GáborJan 17, 2011
  5. Jonathan NiederJan 17, 2011
  6. Christian CouderJan 18, 2011
  7. Aaron S. MeurerJan 17, 2011
  8. Aaron S. MeurerJan 17, 2011
  9. Christian CouderJan 18, 2011
  10. Junio C HamanoJan 18, 2011
  11. Christian CouderJan 19, 2011
  12. Aaron S. MeurerJan 19, 2011
  13. Junio C HamanoJan 19, 2011
  14. Aaron S. MeurerJan 19, 2011
  15. Christian CouderJan 21, 2011
  16. Johannes SixtJan 21, 2011
  17. Jakub NarebskiJan 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.