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

[BUG] diff and blame difference

From
SKSemyon Kirnosenko <semyon.kirnosenko@gmail.com>
Date
Jul 26, 2011, 14:10 UTC
Message-ID
<4E2ECABD.7050601@gmail.com>
Hi.

Again, I have to post about diff and blame difference problem. The initial discussion ends here: http://permalink.gmane.org/gmane.comp.version-control.git/165012

I have the same problem and now it's about non-whitespace lines. The problem is some line is marked in diff as added, but in blame it is marked as added in some older revision. And vice versa line is not marked as added in diff but it is marked in blame. Here are several examples from git repo:

Diff error in revision 198b0fb635ed8a007bac0c16eab112c5e2c7995c in file date.c. Line 184: added in diff, but blame say otherwise. Line 215: added in diff, but blame say otherwise. Line 219: added in diff, but blame say otherwise. Line 259: added in diff, but blame say otherwise. Line 260: added in diff, but blame say otherwise. Line 193: not added in diff, but blame say otherwise. Line 212: not added in diff, but blame say otherwise. Line 222: not added in diff, but blame say otherwise. Line 300: not added in diff, but blame say otherwise. Line 315: not added in diff, but blame say otherwise.

To get diff and blame i've used the following commands: git --git-dir=D:\src\git\.git diff-tree -p 198b0fb635ed8a007bac0c16eab112c5e2c7995c -- date.c > diff-tree git --git-dir=D:\src\git\.git blame -l -s 198b0fb635ed8a007bac0c16eab112c5e2c7995c -- date.c > blame

I have sent this before, but did not receive any response. I just need some type of answer. Something like "we will fix it" or "we don't care about it".

Next: Junio C Hamano
Message 1 of 2 in “[BUG] diff and blame difference”
  1. Semyon KirnosenkoJul 26, 2011
  2. Junio C HamanoJul 26, 2011

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.