From: Jeff King <peff@peff.net>
To: Johannes Sixt <j6t@kdbg.org>
Cc: Michal Vyskocil <mvyskocil@suse.cz>, git@vger.kernel.org
Subject: Re: RFC: reverse bisect
Date: Fri, 30 Sep 2011 00:09:24 -0400 [thread overview]
Message-ID: <20110930040924.GA28724@sigill.intra.peff.net> (raw)
In-Reply-To: <4E849C5B.7050201@kdbg.org>
On Thu, Sep 29, 2011 at 06:27:07PM +0200, Johannes Sixt wrote:
> > git bisect good/bad/skip/run
>
> Last time this came up on the list I suggested to add the following
> commands:
>
> git bisect regression # a synonym for git bisect start
> git bisect improvement # your --reverse
That makes some sense to me. But I do wonder if you could simply get rid
of the connotations of "good" and "bad" entirely, by thinking of it as
simply looking for a commit that introduced some property. Like:
# find a bug
git bisect start
git bisect yes ;# has the bug
git bisect no ;# does not have the bug
git bisect skip ;# no idea
# find a feature being implemented
git bisect start
git bisect yes ;# has the feature
git bisect no ;# does not have the feature
git bisect skip ;# no idea
IOW, I feel like we are having to handle this weird negation only
because we have assigned a value judgement to the tests. That instead of
saying "yes, we have this bug", we say "bad", which only makes sense if
you are looking for a bad thing.
You can still produce a negation in your mind, of course, by asking
"when did this property go away". But that is usually about a bug being
fixed, so the right answer is generally not a set of command line
options, but to stop asking "when did bug X go away", and instead ask
"when did the fix for bug X appear".
One catch is that the run command assumes a successful exit is "good",
and anything else is "bad". Which makes:
git bisect run make test
good for finding regressions, but is a little counterintuitive for the
yes/no thing (a successful exit means "no").
-Peff
next prev parent reply other threads:[~2011-09-30 4:09 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-09-29 14:20 RFC: reverse bisect Michal Vyskocil
2011-09-29 14:42 ` Sverre Rabbelier
2011-09-29 16:27 ` Johannes Sixt
2011-09-30 4:09 ` Jeff King [this message]
2011-09-30 5:31 ` Frans Klaver
2011-09-30 8:29 ` Michal Vyskocil
2011-09-30 11:42 ` [RFC/PATCH]: reverse bisect v 2.0 Michal Vyskocil
2011-09-30 18:13 ` Junio C Hamano
2011-10-03 10:41 ` Jeff King
2011-10-03 17:00 ` Junio C Hamano
2011-10-04 10:30 ` Jeff King
2011-10-04 15:22 ` Junio C Hamano
2011-10-04 22:34 ` Christian Couder
2011-10-04 23:27 ` Junio C Hamano
2011-10-07 1:57 ` Andrew Ardill
2011-10-12 4:57 ` Junio C Hamano
2011-10-12 20:14 ` Jeff King
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=20110930040924.GA28724@sigill.intra.peff.net \
--to=peff@peff.net \
--cc=git@vger.kernel.org \
--cc=j6t@kdbg.org \
--cc=mvyskocil@suse.cz \
/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).