[Top][All Lists]

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

Re: Progress report on git-blame

From: Óscar Fuentes
Subject: Re: Progress report on git-blame
Date: Sun, 26 Jan 2014 00:03:47 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)

Stefan Monnier <address@hidden> writes:

> 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".  A "git log-and-diff" would handle that case
> just fine, OTOH.

When you know the content's of the line that was added/removed (or a
peculiar enough part of it) you can use `git log -S <text>':

$ git log -S chmod

or, restricted to a path:

$ git log -S chmod -- *.h

for viewing the diffs too:

$ git log -S chmod -p -- *.h

There are lots of possibilities there. See `git help log' and search for

All those cases are supported by Magit.

reply via email to

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