git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jim Cromie <jim.cromie@gmail.com>
To: Junio C Hamano <gitster@pobox.com>
Cc: Jeff King <peff@peff.net>, git@vger.kernel.org
Subject: Re: feature request - telling git bisect to skip, from inside a commit
Date: Tue, 29 Mar 2011 11:00:00 -0600	[thread overview]
Message-ID: <AANLkTin+0yScj2ejVgPSMmY6Q+Qk0MM+W+EqqLGphCrz@mail.gmail.com> (raw)
In-Reply-To: <7vipv31943.fsf@alter.siamese.dyndns.org>

On Mon, Mar 28, 2011 at 10:51 AM, Junio C Hamano <gitster@pobox.com> wrote:
> Jeff King <peff@peff.net> writes:
>
>> That could work, though I would spell it as a pseudo-header:
>>
>>   Bisect: Skip
>>
>> at the end of each commit.

I like this generically.  It is more constrained than a
/^bisect skip(.*)$/ matching, and perhaps easier to code.

Thank you for reading into my request and formulating a better version,
the discussion/explication of issues also helps.

If the pseudo-header can be added into the commit message,
it is trivial to use.

I see the merit of a skip-cache as working after-the-fact
on already published/shared patch-sets, but Im unsure how the
skip-cache can be shared currently.

>
> I think that is a saner approach, and further say it would be much saner
> to make that token something like
>
>    Broken: does not build

My only concern here is the negative connotation of Broken.
At least in my 1/2 change scenario, thats known to be incomplete,
its kinda pejorative.  But it certainly gets the job done.

Skip: make rc 125
Skip: 125
Skip: gcc error: no such field: foo
Skip: api change only, users must follow

Skip: has less pejorative, and closer name-association linkage
to the bisect skip command that it

>
> A commit may or may not build, a build product may work in some areas just
> fine and may have known bugs in some other areas, depending on what kind
> of breakage you are interested in.  You might even be looking for a change
> that fixed a bug for cherry picking.  In short, "Bisect: Skip" is too
> broad a brush, and does not convey enough information.
>

agreed -  It would be interesting, 6 months after the feature is added (I hope),
 to search commit messages and see how the header has been used.

> And then teach the script you give to "bisect run" to grep for that
> "^Broken: " pattern to answer with exit 125 (cannot test), and you are
> done.
>

With this, nothing needs to be added.
The only advantage to bisect looking for the pseudo-header is that
a convention is supported, such that it might get used.
I suppose a 1 line addition to git bisect run documentation would
do just as well.

thanks

  reply	other threads:[~2011-03-29 17:00 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-26 18:48 feature request - telling git bisect to skip, from inside a commit Jim Cromie
2011-03-28  4:03 ` Christian Couder
2011-03-28 16:31 ` Jeff King
2011-03-28 16:51   ` Junio C Hamano
2011-03-29 17:00     ` Jim Cromie [this message]
2011-03-29 18:23       ` 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=AANLkTin+0yScj2ejVgPSMmY6Q+Qk0MM+W+EqqLGphCrz@mail.gmail.com \
    --to=jim.cromie@gmail.com \
    --cc=git@vger.kernel.org \
    --cc=gitster@pobox.com \
    --cc=peff@peff.net \
    /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).