Git development
 help / color / mirror / Atom feed
From: linux@horizon.com
To: git@vger.kernel.org
Subject: If anyone feels like hacking git-rev-list --bisect...
Date: 27 Jun 2007 14:53:37 -0400	[thread overview]
Message-ID: <20070627185337.1107.qmail@science.horizon.com> (raw)

I'm trying to bisect kernel bug A, but I keep running into kernel bug
B which causes a crash on boot.  (But was fixed, so I don't need to think
about it much.)

that is, my revision history is something like:

G...........G......XXXXXXXXXX.....B...............B
G = good
B = bad
X = I can't tell


While I can do things like "git-reset --hard HEAD~250" to try to get past
the problem, it's an annoying bit of guessing to find good values, and
if my problem is one some branch, I'd rather explore a different branch.

How much nicer, I couldn't help thinking, if bisection could be told
to look for a ratio other than 1/2.  Then I could ask for the 1/3 or 2/3
point instead.

That would also be helpful in cases where the "good" or "bad" cases
differ significantly in testing pain.  For example, if "bad" forces
an fsck, or if "good" takes a couple of hours of stress-testing
to be really sure.

I *think* it's just a tweak to builtin-rev-list.c:halfway(), but the
code that calls that is rather intricate.

So if anyone feels like attempting it...

Adding the relevant UI to git-bisect would be relatively straightforward.
A new command to re-bisect from the initial state would allow evading
unbuildable commits, and maybe a way to set a preferred split ratio.

                 reply	other threads:[~2007-06-27 18:53 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=20070627185337.1107.qmail@science.horizon.com \
    --to=linux@horizon.com \
    --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