From: Junio C Hamano <gitster@pobox.com>
To: Christian Couder <christian.couder@gmail.com>
Cc: Jeff King <peff@peff.net>,
Trevor Saunders <tbsaunde@tbsaunde.org>,
Stefan Beller <sbeller@google.com>,
"git\@vger.kernel.org" <git@vger.kernel.org>
Subject: Re: [PATCH] bisect: print abbrev sha1 for first bad commit
Date: Mon, 11 May 2015 09:54:15 -0700 [thread overview]
Message-ID: <xmqqfv73f420.fsf@gitster.dls.corp.google.com> (raw)
In-Reply-To: <CAP8UFD1Aq54dWvxo5JTP4Fqy5u-qhA0LAm3vRrw9=jYg3o_F+g@mail.gmail.com> (Christian Couder's message of "Mon, 11 May 2015 09:38:12 +0200")
Christian Couder <christian.couder@gmail.com> writes:
> On Mon, May 11, 2015 at 6:33 AM, Junio C Hamano <gitster@pobox.com> wrote:
>> Jeff King <peff@peff.net> writes:
>>
>>> I'd argue for simply never showing the diff (dropping the "opt.diff = 1"
>>> line from bisect.c:show_diff_tree), but that is mostly my personal
>>> opinion.
>>
>> Yeah, I think that is sensible. It may even be OK to just give a
>> "log --oneline".
>
> Or maybe we could let the user configure the diff options or even the
> command used when the first bad commit is found?
That is a separate discussion. I do not mind but I doubt many
people would use it (I was tempted to say "doubt anybody would", but
then was reminded how many people use Git, and toned it down), as
long as we have a good default. And I thought that this discussion
was about coming up with a good-enough default.
To be bluntly honest, I think the current one is sufficient as a
good-enough default. The first thing I would do after seeing that
message is to either "git checkout <commit-object-name>" or "git
show <commit-object-name>", and the current full 40-hex output gives
me an easier mouse-double-click target than the proposed abbreviated
one, so in that sense the original proposal may even be a usability
regression.
It is tempting to say that the output can be eliminated by always
checking out the first-bad-commit (i.e. only when the last answer
that led to the first-bad decision was "good", do a "git checkout"
of that bad commit), but in a project where a branch switching is
not instantaneous, that might be problematic (unless the first step
the user would have done is to check it out anyway, of course).
next prev parent reply other threads:[~2015-05-11 16:54 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-05-08 23:46 [PATCH] bisect: print abbrev sha1 for first bad commit Trevor Saunders
2015-05-09 0:29 ` Stefan Beller
2015-05-09 2:03 ` Trevor Saunders
2015-05-09 4:07 ` Jeff King
2015-05-10 23:12 ` Trevor Saunders
2015-05-11 1:10 ` Jeff King
2015-05-11 4:33 ` Junio C Hamano
2015-05-11 7:38 ` Christian Couder
2015-05-11 16:54 ` Junio C Hamano [this message]
2015-05-11 18:17 ` Trevor Saunders
2015-05-11 18:28 ` Stefan Beller
2015-05-12 9:21 ` Christian Couder
2015-05-12 17:11 ` Junio C Hamano
2015-05-12 20:43 ` Christian Couder
2015-05-12 20:58 ` Stefan Beller
2015-05-12 23:40 ` Trevor Saunders
2015-05-13 13:24 ` Christian Couder
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=xmqqfv73f420.fsf@gitster.dls.corp.google.com \
--to=gitster@pobox.com \
--cc=christian.couder@gmail.com \
--cc=git@vger.kernel.org \
--cc=peff@peff.net \
--cc=sbeller@google.com \
--cc=tbsaunde@tbsaunde.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.