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

Re: Bug?: 'git log --find-copies' doesn't match 'git log --follow <rev> -- path/to/file'

From
Jeff King <peff@peff.net>
Date
Sep 30, 2011, 21:38 UTC
Message-ID
<20110930213841.GA9384@sigill.intra.peff.net>
In-Reply-To
<DBC73B3F-2703-4651-AADA-233A9CC38AFD@inf.fu-berlin.de>
On Fri, Sep 30, 2011 at 05:32:38PM +0200, Alexander Pepper wrote:
Show 5 quoted lines
> So git log with copy and rename detection on (--find-copies) tells me,
> that the file StopClusterException.java is copied to
> ClusterOperation.java. But If I ask git log for that specific file
> with --follow git claims a copy from Immutable.java to
> ClusterOperation.java!
I think that --follow uses --find-copies-harder. Did you try:
  git log --numstat --find-copies-harder dd4e90f9
? Does it find Immutable.java as the source?
-Peff
Previous: Alexander PepperNext: Alexander Pepper
Message 2 of 4 in “Bug?: 'git log --find-copies' doesn't match 'git log --follow <rev> -- path/to/file'”
  1. Alexander PepperSep 30, 2011
  2. Jeff KingSep 30, 2011
  3. Alexander PepperOct 2, 2011
  4. Jeff KingOct 2, 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.