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

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

From
Christian Couder <christian.couder@gmail.com>
Date
Mar 16, 2011, 09:52 UTC
Message-ID
<AANLkTimAaL-C_oH9X3QFUc+JOaSi7xVe93KYJuL0VEyR@mail.gmail.com>
In-Reply-To
<20110314210001.GE4586@gmx.de>
Hi,

On Mon, Mar 14, 2011 at 10:00 PM, Ralf Wildenhues <Ralf.Wildenhues@gmx.de> wrote:

> git bisect is sometimes less effective than it could be in projects
> with long-lived but simple bugs (e.g., little-tested configurations).
> Rather than skipping vast revision ranges, it might be easier to fix
> them up from known bugfix branches.

It's already possible to deal with this problem by creating a new branch where the bug is fixed, and then using "git replace", so that the new branch is used instead of the old one. Please search for "git replace" in this doc:

http://www.kernel.org/pub/software/scm/git/docs/git-bisect-lk2009.html
> 'git bisect fix' teaches bisect about when some known bug was
> introduced and when it was fixed, so that bisect can merge in
> the fix when needed into new test candidates.

Perhaps some people would find it easier to use what you suggest but using git replace may be nicer because you have to create the new branch once, so you need to fix merge or rebase problems only once. And the new branch may be useful not only for bisecting, for example to recreate old versions.

Thanks, Christian.

Previous: Yann DirsonNext: Michael J Gruber
Message 8 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.