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

Re: [PATCH] Document 'git bisect fix'.

From
Junio C Hamano <gitster@pobox.com>
Date
Mar 16, 2011, 20:35 UTC
Message-ID
<7vmxku7qiy.fsf@alter.siamese.dyndns.org>
In-Reply-To
<4D80A33B.8020006@drmicha.warpmail.net>
Michael J Gruber <git@drmicha.warpmail.net> writes:
Show 10 quoted lines
> Christian Couder venit, vidit, dixit 16.03.2011 10:52:
> ...
>> It's already possible to deal with this problem by creating a new
>> branch where the bug is fixed,...
>
> I'd say the replace method is perfect for transporting an existing fix
> "back in time" when the range of non-bisectable commits is limited. But
> since you have to replace the right (most recent) commit in that range
> it is less convenient when you have a fix due to a changed/exotic build
> environment or such which you do not want in your mainline.

I totally agree with Michael. If somebody has _already_ used "replace" to make an alternate history in which nobody made any mistake by masking each and every bug fixed in the past, your bisect would be easier, but that is nothing more than a theoretical daydreaming. Who in the right mind would do that?

If you need fixes applied for unrelated bug to even trigger the bug you are chasing, "replace" is not a practical option. You might even be the first to notice that these "known fixes" mattered in the part of the history you happen to be bisecting, and nobody sane would have prepared such "replace" in the past just in case.

Treat "replace" as nothing more than a reimplementation of "grafts" done right (i.e. can be transferred using the usual git transfer protocols); I don't want to see its use advocated for applications it is not suited. It just confuses people.

Previous: Michael J Gruber
Message 10 of 10 in “git bisect plus fixes (was: PATCH: Add --size-check=[error|warning])”
  1. Ralf WildenhuesMar 14, 2011
  2. git-bisect.txt: example for bisecting with hotfixMichael J Gruber, Mar 14, 2011
  3. Junio C HamanoMar 14, 2011
  4. 1/2 git-bisect.txt: streamline run presentationMichael J Gruber, Mar 15, 2011
  5. 2/2 git-bisect.txt: example for bisecting with hot-fixMichael J Gruber, Mar 15, 2011
  6. Document 'git bisect fix'.Ralf Wildenhues, Mar 14, 2011
  7. Yann DirsonMar 15, 2011
  8. Christian CouderMar 16, 2011
  9. Michael J GruberMar 16, 2011
  10. Junio C HamanoMar 16, 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.