From: Jeff King <peff@peff.net>
To: git@vger.kernel.org
Subject: Re: [BUG?] --boundary inconsistent with path limiting
Date: Thu, 4 Aug 2016 16:09:05 -0400 [thread overview]
Message-ID: <20160804200905.7xdiei2yfv2aw6im@sigill.intra.peff.net> (raw)
In-Reply-To: <20160804194043.z4nbosr4wpbzljdl@sigill.intra.peff.net>
On Thu, Aug 04, 2016 at 03:40:43PM -0400, Jeff King wrote:
> That makes sense to me. We omit "c" because it doesn't touch "b.t", and
> obviously include "b", which does. We _do_ include the boundary commit,
> even though it doesn't touch the path, which makes sense to me. It
> remains a boundary whether it touched the path or not, and without it,
> we get no boundary at all.
>
> But now if I limit to "a.t", I get no output at all:
>
> $ git log --format='%m %s' --boundary a..c -- a.t
>
> whereas I would have expected "- a" to show the boundary.
>
> Is this a bug, or are my expectations wrong?
So I suppose it depends how you define "boundary" commits. In
get_revision_internal(), I see this comment:
/*
* boundary commits are the commits that are parents of the
* ones we got from get_revision_1() but they themselves are
* not returned from get_revision_1(). Before returning
* 'c', we need to mark its parents that they could be boundaries.
*/
By that definition, obviously if we do not have any commits to show,
then we have no boundary commits. I don't think this definition is
anywhere in the user-facing documentation, though.
It still seems weird to me, and I wonder if we should show all
UNINTERESTING commits as boundaries in the case that we haven't produced
any positive commits at all. But perhaps there is a case where that
would not be desirable.
-Peff
next prev parent reply other threads:[~2016-08-04 20:09 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-08-04 19:40 [BUG?] --boundary inconsistent with path limiting Jeff King
2016-08-04 20:09 ` Jeff King [this message]
2016-08-04 20:11 ` 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=20160804200905.7xdiei2yfv2aw6im@sigill.intra.peff.net \
--to=peff@peff.net \
--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).