git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Blamming a diff between two commits?

From
Matthieu Moy <matthieu.moy@imag.fr>
Date
Feb 17, 2009, 14:03 UTC
Message-ID
<vpqocx1qhwx.fsf@bauges.imag.fr>
In-Reply-To
<499AB8A1.7090909@datacom.ind.br>
Samuel Lucas Vaz de Mello <samuellucas@datacom.ind.br> writes:
> Hi,
>
> Is there any way to git blame (or annotate) a diff between two commits?
I don't think this is implemented (but would be nice).
> Using a git-blame in the resulting file give me the commits for the
> lines added, but not for the deleted ones.

A preliminary implementation of "git blame --reverse" was proposed by Junio here:

  http://kerneltrap.org/mailarchive/git/2008/4/3/1338234
And an approximation of it is proposed in the thread:
  http://kerneltrap.org/mailarchive/git/2008/4/3/1343554
I don't know the status of this patch (dropped?).
-- 
Matthieu
Previous: Johannes SchindelinNext: Thomas Rast
Message 5 of 10 in “Blamming a diff between two commits?”
  1. Samuel Lucas Vaz de MelloFeb 17, 2009
  2. Johannes SchindelinFeb 17, 2009
  3. Samuel Lucas Vaz de MelloFeb 17, 2009
  4. Johannes SchindelinFeb 17, 2009
  5. Matthieu MoyFeb 17, 2009
  6. Thomas RastFeb 17, 2009
  7. Thomas RastFeb 20, 2009
  8. Jan HudecFeb 22, 2009
  9. Matthieu MoyFeb 22, 2009
  10. Jan HudecFeb 22, 2009

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.