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

git blame doesn't respect diff algorithm?

From
Pierre Ossman <ossman@cendio.se>
Date
May 14, 2019, 09:19 UTC
Message-ID
<f0ed56fd-092e-92e5-35b5-7adfd740d5bf@cendio.se>
Hi,

It seems like there is a bug in git blame where it doesn't respect the diff algorithm setting. It happily parses it on the command line, but there is no change to the output.

The problem materialises in that git blame will claim a line comes from a certain commit. But when I do "git show --patience" on that commit, the relevant line was not changed.

I could not find anything about this on the mailing list, so is this a previously overlooked issue?

If you want to test it for your self, then do:
 1. Clone tigervnc's git repo
 2. git blame --patience vncviewer/DesktopWindow.cxx
 3. Check line 906, it should say 7e546feba
 4. git show --patience 7e546feba
This was with git-2.20.1-1.fc29.x86_64.
Regards
-- 
Pierre Ossman           Software Development
Cendio AB               https://cendio.com
Teknikringen 8          https://twitter.com/ThinLinc
583 30 Linköping        https://facebook.com/ThinLinc
Phone: +46-13-214600

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
Message 1 of 1 in “git blame doesn't respect diff algorithm?”
  1. Pierre OssmanMay 14, 2019

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.