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

Re: [PATCH] Make git log --follow support --find-copies-harder.

From
Junio C Hamano <gitster@pobox.com>
Date
Apr 21, 2010, 16:56 UTC
Message-ID
<7v8w8gbv75.fsf@alter.siamese.dyndns.org>
In-Reply-To
<1271860641-29305-1-git-send-email-struggleyb.nku@gmail.com>
Bo Yang <struggleyb.nku@gmail.com> writes:
> 'git log --follow --find-copies-harder <path>' don't track copies
> from unmodified files, and this patch fix it.

What does the command do when given a single -C instead of --f-c-h, with or without your patch? What should it do?

Because try_to_follow_renames() is supposed to be a rare-event (it only happens when a path we have been following disappears), I am having this feeling that it would make more sense to do this change unconditionally.

Two possible outcomes that this patch allows the users to have by giving them a choice to give (or not to give) --f-c-h are:

 (1) the path is judged to be new in a commit and traversal finishes
     there; or 
 (2) the path is found to be a copy from another path from one of the
     parents and traversal continues.

But I think using --follow is a sure sign of the user wanting the latter and never the former, no?

Previous: Bo YangNext: Bo Yang
Message 2 of 4 in “Make git log --follow support --find-copies-harder.”
  1. Make git log --follow support --find-copies-harder.Bo Yang, Apr 21, 2010
  2. Junio C HamanoApr 21, 2010
  3. Bo YangApr 22, 2010
  4. Junio C HamanoApr 22, 2010

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.