From: Michael J Gruber <git@drmicha.warpmail.net>
To: David Kastrup <dak@gnu.org>
Cc: git@vger.kernel.org
Subject: Re: Marking commits as transitory for git bisect?
Date: Wed, 02 Dec 2009 11:44:17 +0100 [thread overview]
Message-ID: <4B164501.7010902@drmicha.warpmail.net> (raw)
In-Reply-To: <871vjdyb59.fsf@lola.goethe.zz>
David Kastrup venit, vidit, dixit 02.12.2009 10:32:
>
> 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.
>
A quick solution with current git would be "replace": Say, in
A-B-C-D
you want B and C to be considered an "atom" for bisection. So, "git
replace" C by a commit C' which is B+C squashed and has A as its parent:
A-C'-D.
Alternatively, if you want this to be distributed more easily and think
of it at the time of committing, producing a DAG like
A--C'--D
\ /
B--C
with C' as the first parent of D may help during bisection. I.e., you
keep the detailed history on the side branch and squash it together on
the --first-parent-line, with C,C' being tree-same.
Cheers,
Michael
next prev parent reply other threads:[~2009-12-02 10:45 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-12-02 9:32 Marking commits as transitory for git bisect? David Kastrup
2009-12-02 10:44 ` Michael J Gruber [this message]
2009-12-02 11:01 ` David Kastrup
2009-12-02 16:49 ` Junio C Hamano
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4B164501.7010902@drmicha.warpmail.net \
--to=git@drmicha.warpmail.net \
--cc=dak@gnu.org \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).