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

Re: feature request - telling git bisect to skip, from inside a commit

From
Christian Couder <chriscool@tuxfamily.org>
Date
Mar 28, 2011, 04:03 UTC
Message-ID
<201103280603.16256.chriscool@tuxfamily.org>
In-Reply-To
<AANLkTinCiM9uqK8Yr=pKaeKytWXqpWF898AeTwvHKg4-@mail.gmail.com>
Hi,
On Saturday 26 March 2011 19:48:25 Jim Cromie wrote:
Show 22 quoted lines
> sometimes its feels clearer to devote a commit to changing (for example)
> the definition of a struct;  and changing all users of that struct in
> the next commit.
> This isolates and highlights the definitional change, rather than burying
> it in the middle of a huge diff.
> 
> The downside of doing this is that git bisect will trip over this 1/2
> change. It would be nice if a committer could mark the commit as not
> bisectable, perhaps by just adding this, on a separate line, to the
> commit-message:
> 
>     "git bisect skip [optional range]"
> 
> the range presumably would be something like CURRENT^1
> except that it would make more sense to flag successors than ancestors,
> and of course, CURRENT would have to mean something.
> 
> Anyway, range isnt really needed, as any subsequent interim commits
> could also flag themselves as such.
> 
> git bisect already has ability to skip a commit, this just helps an
> automated bisection script.
Please look at this recent thread:
http://thread.gmane.org/gmane.comp.version-control.git/169026/

where there are other suggestions and discussions about how to deal with this kind of problems.

Thanks, Christian.

Previous: Jim CromieNext: Jeff King
Message 2 of 6 in “feature request - telling git bisect to skip, from inside a commit”
  1. Jim CromieMar 26, 2011
  2. Christian CouderMar 28, 2011
  3. Jeff KingMar 28, 2011
  4. Junio C HamanoMar 28, 2011
  5. Jim CromieMar 29, 2011
  6. Jeff KingMar 29, 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.