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

Re: Rename detection at git log

From
APAndy Parkins <andyparkins@gmail.com>
Date
Nov 20, 2006, 09:50 UTC
Message-ID
<200611200951.05529.andyparkins@gmail.com>
In-Reply-To
<200611201157.23680.litvinov2004@gmail.com>
On Monday 2006 November 20 05:57, Alexander Litvinov wrote:
> > PAGER=cat git log -M -C --pretty=oneline b/a

I've come across this too. Personally I'm not sure what use "-C" is. From the manpage, man git-diff-files (no, this isn't the place I'd look either).

--find-copies-harder For performance reasons, by default, -C option finds copies only if the original file of the copy was modified in the same changeset. This flag makes the command inspect unmodified files as candidates for the source of copy. This is a very expensive operation for large projects, so use it with caution.

That is to say that unless the file you are copying was modified AND copied in the same commit, it won't be searched as a potential source for the copy operation. I think it would be rare to make a copy of a file I had modified, surely I'd want to check in modifications before making a copy?

Regardlss, to get the results you want, use the stronger switch --find-copies-harder, heeding the warning that on big projects it will be very slow.

Andy
-- 
Dr Andy Parkins, M Eng (hons), MIEE
Previous: Alexander LitvinovNext: Junio C Hamano
Message 2 of 17 in “Rename detection at git log”
  1. Alexander LitvinovNov 20, 2006
  2. Andy ParkinsNov 20, 2006
  3. Junio C HamanoNov 20, 2006
  4. Jakub NarebskiNov 20, 2006
  5. Andy ParkinsNov 20, 2006
  6. Junio C HamanoNov 20, 2006
  7. Andy ParkinsNov 20, 2006
  8. Jakub NarebskiNov 20, 2006
  9. Junio C HamanoNov 20, 2006
  10. Andy ParkinsNov 20, 2006
  11. Junio C HamanoNov 20, 2006
  12. Andy ParkinsNov 20, 2006
  13. Alexander LitvinovNov 20, 2006
  14. Alex RiesenNov 20, 2006
  15. Andy ParkinsNov 20, 2006
  16. Junio C HamanoNov 20, 2006
  17. Andy ParkinsNov 20, 2006

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.