emacs-devel
[Top][All Lists]
Advanced

[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: Sat, 25 Jan 2014 16:45:18 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)

> That sounds quite useful.  My common bug fixing use case is that I find
> a function (or a bit of a function) that I think has a bug, and then I
> `C-x v g' to find out who "who wrote this crap anyway!!!" (it usually
> turns out to be myself), and then I try to see whether any of the lines
> are suspiciously new and may have introduced a new bug.

> 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.

Indeed, as mentioned in the past a few times in various contexts,
I generally don't really want "git blame" (or its equivalent in other
VCS), instead I want "git log-and-diff FILE:NN-MM" which gives me the
history (hunks and accompanying log comments) of the lines between NN
and MM of FILE.

I use "git blame" to get each step of this history by hand, but it'd
be much better to get that history directly, which is probably cheaper
than a single "git blame".


        Stefan



reply via email to

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