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

Re: Feature request: Exponential search in git bisect

From
Manuel Bärenz <manuel@enigmage.de>
Date
Nov 1, 2020, 20:17 UTC
Message-ID
<a03a9674-921e-d8f4-19f8-ca60aa4a473a@enigmage.de>
In-Reply-To
<b1adedaa-5809-9ea1-f664-3a7cabaf0d14@iee.email>
On 25.10.20 18:15, Philip Oakley wrote:
Show 20 quoted lines
> Hi Manuel,
>
> On 10/10/2020 10:22, Christian Couder wrote:
>> On Fri, Oct 9, 2020 at 9:35 PM Manuel Bärenz <manuel@enigmage.de> wrote:
>>> This feature was requested 8 years ago and briefly discussed:
>>> https://public-inbox.org/git/20120318212957.GS1219@chaosreigns.com/
>>>
>>>
>>>   TL;DR
>>>
>>> Before doing git bisect, I want to use exponential search to
>>> automatically find a good commit, in logarithmic time.
>> Ok, but the conclusion of the above discussion is that the problem
>> with this idea is being able to distinguish between a commit that is
>> bad and a commit where the feature that you want to test cannot be
>> tested for example because it hasn't been implemented yet.
> Does any of the proposed improvement in the "bisect: loosen halfway()
> check for a large number of commits"
> https://lore.kernel.org/git/20201022103806.26680-1-szeder.dev@gmail.com/
> assist in this.

I'm afraid not, since the time to recompile and run tests usually dominates the search (at least in my case). So the fewer commits have to be tested, the better.

The hard part is distinguishing in an automated way on an old commit when to skip and when to mark as good.

Previous: Philip OakleyNext: Ævar Arnfjörð Bjarmason
Message 7 of 10 in “Feature request: Exponential search in git bisect”
  1. Manuel BärenzOct 9, 2020
  2. Christian CouderOct 10, 2020
  3. Christian CouderOct 10, 2020
  4. Philip OakleyOct 25, 2020
  5. Junio C HamanoOct 26, 2020
  6. Philip OakleyOct 26, 2020
  7. Manuel BärenzNov 1, 2020
  8. Ævar Arnfjörð BjarmasonOct 27, 2020
  9. Manuel BärenzNov 1, 2020
  10. Ævar Arnfjörð BjarmasonNov 2, 2020

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.