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

Marking commits as transitory for git bisect?

From
David Kastrup <dak@gnu.org>
Date
Dec 2, 2009, 09:32 UTC
Message-ID
<871vjdyb59.fsf@lola.goethe.zz>
Hi,

sometimes there are changes which would seem better to restructure into more than one commit, with a non-operative intermediate state.

What I am thinking of is something like
a) change an API (small but highly intricate patch warranting thorough
   line-by-line review to make sure it's fine)
b) adapt all existing callers (really large but utterly trivial patch)

Substructuring this change into two commits may be quite nicer for reviewing and following it.

Except that it breaks git bisect. If there was a way to mark a commit as non-interesting, something which does not necessarily need any new repo features but just a convention like automatically skipping commits that contain the literal string [skip bisect] in the commit message, that would be one way to implement basic functionality like that.

A more thorough approach might also warn against partial cherrypicks or rebases or merges applying just part of one such a combined change.

But the main point is the ability to keep git bisect working on commit combinations with deliberately non-operative transitory stage.

-- 
David Kastrup
Next: Michael J Gruber
Message 1 of 4 in “Marking commits as transitory for git bisect?”
  1. David KastrupDec 2, 2009
  2. Michael J GruberDec 2, 2009
  3. David KastrupDec 2, 2009
  4. Junio C HamanoDec 2, 2009

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.