From: Thomas Rast <trast@student.ethz.ch>
To: Bo Yang <struggleyb.nku@gmail.com>, Junio C Hamano <gitster@pobox.com>
Cc: <git@vger.kernel.org>, Jens Lehmann <Jens.Lehmann@web.de>,
Jakub Narebski <jnareb@gmail.com>,
Jonathan Nieder <jrnieder@gmail.com>,
Johannes Schindelin <johannes.schindelin@gmx.de>
Subject: Re: Multiple line ranges and files in line level history browser
Date: Wed, 12 May 2010 09:57:10 +0200 [thread overview]
Message-ID: <201005120957.10961.trast@student.ethz.ch> (raw)
In-Reply-To: <AANLkTimCT7euE0CjGBx88MlfVJhxVo1GdOtnMhtZqBQs@mail.gmail.com>
Bo Yang wrote:
> On Mon, May 10, 2010 at 2:20 AM, Junio C Hamano <gitster@pobox.com> wrote:
> > I'd rather not to see this in revision.c at all. The revision.c parser
> > has always been options and then pathspecs and never takes individual
> > filnames, except for "--follow" that is an afterthought checkbox hack that
> > lets the main parser parse and then reject a generic pathspec after the
> > fact.
>
> Ok, this will be put in the builtin/log.c
[...]
> 1. The definition of TREESAME. TREESAME will be changed to consider
> the line ranges if -L option is given;
> With this, the history simplification can be done very well for line
> level history traversal. And even well for parent rewriting to support
> --graph option.
Doesn't this actually mean it should go in revision.c, after all?
AFAICS you make a case that this feature is an extension of the path
filtering and also of --follow. This is not strictly speaking true,
since '-- path' only cares about the path itself, '--follow -- path'
tracks only "sufficiently close" renames and '-L0,inf path'[0] tracks
the lines across files even if it's only small chunks.
But I still think it's a good argument. And then if git-log learns
about it, why should this be a special case that only the log family
understands, but not rev-list?
And since we can't remove --follow for hysterical raisins, you might
as well link the whole "what moved where" tracking logic to a place
where it helps fixing --follow.
Or am I totally on the wrong page?
[0] making up syntax for the purposes of the example, please don't
think of this as normative or even a good idea
--
Thomas Rast
trast@{inf,student}.ethz.ch
next prev parent reply other threads:[~2010-05-12 7:57 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-05-09 14:00 Multiple line ranges and files in line level history browser Bo Yang
2010-05-09 18:20 ` Junio C Hamano
2010-05-11 5:43 ` Bo Yang
2010-05-12 7:57 ` Thomas Rast [this message]
2010-05-09 21:06 ` Jonathan Nieder
2010-05-10 9:31 ` Jonathan Nieder
2010-05-11 6:28 ` Bo Yang
2010-05-11 6:16 ` Bo Yang
2010-05-11 6:28 ` Jonathan Nieder
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=201005120957.10961.trast@student.ethz.ch \
--to=trast@student.ethz.ch \
--cc=Jens.Lehmann@web.de \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
--cc=jnareb@gmail.com \
--cc=johannes.schindelin@gmx.de \
--cc=jrnieder@gmail.com \
--cc=struggleyb.nku@gmail.com \
/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.