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

[BUG] The description of pickaxe in git-blame(1) is wrong

From
Jakub Narebski <jnareb@gmail.com>
Date
Dec 14, 2008, 21:33 UTC
Message-ID
<200812142233.49669.jnareb@gmail.com>

I think that the description of how 'pickaxe' feature works in Documentation/git-blame.txt is wrong. It says:

  Apart from supporting file annotation, git also supports searching the
  development history for when a code snippet occurred in a change. This makes it
  possible to track when a code snippet was added to a file, moved or copied
  between files, and eventually deleted or replaced. _It works by searching for
  a text string in the diff_. A small example:

The part "It works by searching for a text string in the diff" is, if I remember correctly, wrong. Actually it (I think) compares how many matches are in pre-image and in post-image, and shows these commits where those number differ.

This for example means that pickaxe would not pick commit which moved a fragment from one place to other without change, I think.

-- 
Jakub Narebski
Poland
Message 1 of 1 in “[BUG] The description of pickaxe in git-blame(1) is wrong”
  1. Jakub NarebskiDec 14, 2008

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.