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

Re: [PATCH] diffcore-pickaxe doc: document -S and -G properly

From
Junio C Hamano <gitster@pobox.com>
Date
May 14, 2013, 19:53 UTC
Message-ID
<7vd2stibix.fsf@alter.siamese.dyndns.org>
In-Reply-To
<CALkWK0=U8hySDc=OhQu6PjDNJ_fk3UBW8tmNowntghHS2-VbmQ@mail.gmail.com>
Ramkumar Ramachandra <artagnon@gmail.com> writes:
> What I was trying to say is that it's an accidental feature

There is nothing accidental about it. It was a very conscious design decision.

When a commit moves a file wholesale without affecting the block of code you are interested in, you know that whole block came from the file in the old tree at pre-rename location without looking at anywhere else. That is why renamed but pickaxe-uninteresting filepairs are dropped.

When a commit moves (some lines of) the block of code you are interested in from one file to another, it may have been a single instance moving to another place, but it may well have been multiple copies consolidated into one (the new copy, pickaxe digging from future to past may see "disappearing"). That is a significant event worth digging into further by first stopping there and then inspecting the whole change with --pickaxe-all to see what changes that are similar to the change in question exist in the other parts (notice the multiple) of the tree.

If you do not understand it, then you really should re-read $gmane/217 and then its explanation I wrote 4 years ago (both of which I already gave you URLs to in this thread).

Previous: Ramkumar RamachandraNext: Ramkumar Ramachandra
Message 17 of 20 in “diffcore-pickaxe doc: document -S and -G properly”
  1. diffcore-pickaxe doc: document -S and -G properlyRamkumar Ramachandra, May 14, 2013
  2. Junio C HamanoMay 14, 2013
  3. Ramkumar RamachandraMay 14, 2013
  4. Junio C HamanoMay 14, 2013
  5. Ramkumar RamachandraMay 14, 2013
  6. Jonathan NiederMay 14, 2013
  7. Ramkumar RamachandraMay 14, 2013
  8. Jonathan NiederMay 14, 2013
  9. Junio C HamanoMay 14, 2013
  10. Junio C HamanoMay 14, 2013
  11. Phil HordMay 14, 2013
  12. Phil HordMay 14, 2013
  13. Phil HordMay 14, 2013
  14. Ramkumar RamachandraMay 14, 2013
  15. Junio C HamanoMay 14, 2013
  16. Ramkumar RamachandraMay 14, 2013
  17. Junio C HamanoMay 14, 2013
  18. Ramkumar RamachandraMay 14, 2013
  19. Phil HordMay 14, 2013
  20. Junio C HamanoMay 14, 2013

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.