[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Progress report on git-blame

From: Stefan Monnier
Subject: Re: Progress report on git-blame
Date: Sun, 26 Jan 2014 10:07:08 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)

>>> So I'm usually just interested in a screenful of lines.  If we could
>>> have a version of `C-x v g' that only does "blame" for the current
>>> region, for instance, that would certainly fit my use case.
>> One more thing: "git blame" is of no use when you're trying to see not
>> "who wrote these lines when" but "who removed (and when) the lines that
>> aren't there any more".
> That's what the --reverse option of git blame is for.

Never tried it.  Can it always be used (i.e. do you have to know
beforehand that you need it)?

>> A "git log-and-diff" would handle that case just fine, OTOH.
> git log -S "literal string" filename
> is also quite helpful (it just outputs the commits where the "literal
> string" appears or disappears).

Right, there are various workarounds.
But the info I want (and that I typically construct by hand by
iterating between vc-annotate, vc-print-log, and vc-diff) is
"vc-print-diff&log-of-region".  And AFAIK the VCS could find that info
at least as easily as (if not more easily) "git log -S" or "git blame".


reply via email to

[Prev in Thread] Current Thread [Next in Thread]