From: "Shawn O. Pearce" <spearce@spearce.org>
To: Marco Costalba <mcostalba@gmail.com>
Cc: Junio C Hamano <gitster@pobox.com>,
Linus Torvalds <torvalds@linux-foundation.org>,
Git Mailing List <git@vger.kernel.org>
Subject: Re: That improved git-gui blame viewer..
Date: Tue, 12 Jun 2007 09:53:03 -0400 [thread overview]
Message-ID: <20070612135303.GT6073@spearce.org> (raw)
In-Reply-To: <e5bfff550706120427g7ad9d38bpc34d9ea284ace693@mail.gmail.com>
Marco Costalba <mcostalba@gmail.com> wrote:
> On 6/12/07, Junio C Hamano <gitster@pobox.com> wrote:
> >
> > (1) Are you emulating CVS-like "a file has an identity, and we
> > follow its changes" model? How does it handle file split,
> > merge, and code movement in general?
> >
>
> It uses 'git rev-list HEAD -- <path>' to get the list of revisions
> that modified a path,
So apparently yes, qgit is emulating CVS. And yet much better things
exist (git-blame).
> I really would like to keep it like that because it is the way 'git'
> works, and I would feel uncomfortable in filtering out git results, it
> seems quite fragile to me.
Its not "the way git works". Its just one way of looking at the data
in the object database. And its not as accurate or as interesting
as what git-blame does.
> This means that file splits, merges, renames etc.. are handled as much
> as they are handled in git. IOW *if* 'git rev-list HEAD -- <path>'
> returns a list of revisions taking in account all of the above, so it
> will, automatically, do qgit.
>
> BTW _currentlly_ git-rev-list does not do that.
And it may never do it. Most of the split/merge code is actually
in git-blame and is probably too CPU intensive to slam into the
middle of git-rev-list as a path limiter operator. But renames
*might* someday be included.
> Going from oldest to newest has this advantage:
It is unclear why you aren't just using `git blame --incremental`.
git-blame running in two passes (with and without -M -C -C) can yield
some very interesting results on files, like Git's own revision.c.
And with the new -w flag that Junio just added, there's even more
interesting possibilities...
;-)
--
Shawn.
next prev parent reply other threads:[~2007-06-12 13:53 UTC|newest]
Thread overview: 29+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-06-09 18:26 That improved git-gui blame viewer Linus Torvalds
2007-06-09 18:29 ` Junio C Hamano
2007-06-11 6:42 ` Shawn O. Pearce
2007-06-11 15:46 ` Linus Torvalds
2007-06-11 16:05 ` Junio C Hamano
2007-06-12 6:16 ` Marco Costalba
2007-06-12 6:52 ` Junio C Hamano
2007-06-12 11:27 ` Marco Costalba
2007-06-12 11:58 ` Marco Costalba
2007-06-12 13:53 ` Shawn O. Pearce [this message]
2007-06-12 19:14 ` Junio C Hamano
2007-06-13 11:11 ` Marco Costalba
2007-06-13 12:44 ` Marco Costalba
2007-06-13 12:45 ` Johannes Schindelin
2007-06-13 14:08 ` Marco Costalba
2007-06-13 14:58 ` Johannes Schindelin
2007-06-13 16:18 ` Marco Costalba
2007-06-13 16:40 ` Johannes Schindelin
2007-06-13 16:27 ` Josef Weidendorfer
2007-06-13 16:50 ` Johannes Schindelin
2007-06-13 16:54 ` Josef Weidendorfer
2007-06-13 17:05 ` Johannes Schindelin
2007-06-13 18:17 ` Josef Weidendorfer
2007-06-13 18:34 ` Johannes Schindelin
2007-06-13 17:17 ` Junio C Hamano
2007-06-14 5:17 ` Shawn O. Pearce
2007-06-13 23:20 ` Jakub Narebski
2007-06-14 6:24 ` Marco Costalba
2007-06-13 11:03 ` Marco Costalba
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=20070612135303.GT6073@spearce.org \
--to=spearce@spearce.org \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
--cc=mcostalba@gmail.com \
--cc=torvalds@linux-foundation.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).