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

Re: "git bisect" takes exactly one bad commit and one or more good?

From
Junio C Hamano <gitster@pobox.com>
Date
Nov 11, 2017, 14:34 UTC
Message-ID
<xmqq8tfcevev.fsf@gitster.mtv.corp.google.com>
In-Reply-To
<CAP8UFD1=idL51XDzE_RKc_7z9NghTd7GHoZ-T61y0rQ8ZYXomw@mail.gmail.com>
Christian Couder <christian.couder@gmail.com> writes:
Show 5 quoted lines
>> "You use it by first telling it a "bad" commit that is known to
>> contain the bug, and a "good" commit that is known to be before the
>> bug was introduced."
>
> Yeah, 'and at least a "good" commit' would be better.
Make it "at least one" instead, perhaps?

I somehow thought that you technically could force bisection with 0 good commit, even though no sane person would do so. For the matter, in practice nobody starts with more than one good commit, and for that reason, I doubt that the proposed change to overstress the fact that you could give two or more "good" ones when starting has that much practical value. The tradeoff of losing the clarity coming from giving only the simplest usage pattern for trying to be technically more correct that is proposed by this change does not sound too good, but it may be just me (who prefers white lies in the end-user docs when it buys us more simplicity and clarity). .

Previous: Christian CouderNext: Robert P. J. Day
Message 3 of 7 in “"git bisect" takes exactly one bad commit and one or more good?”
  1. Robert P. J. DayNov 11, 2017
  2. Christian CouderNov 11, 2017
  3. Junio C HamanoNov 11, 2017
  4. Robert P. J. DayNov 11, 2017
  5. Kaartic SivaraamNov 12, 2017
  6. Robert P. J. DayNov 11, 2017
  7. Stephan BeyerNov 12, 2017

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.