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

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

From
Bo Yang <struggleyb.nku@gmail.com>
Date
Apr 21, 2010, 09:02 UTC
Message-ID
<i2r41f08ee11004210202r642aa25dy32b06c33ed98ba4c@mail.gmail.com>
In-Reply-To
<7vtyr5cxnz.fsf@alter.siamese.dyndns.org>
On Wed, Apr 21, 2010 at 11:05 AM, Junio C Hamano <gitster@pobox.com> wrote:
Show 13 quoted lines
>
> Because the "--follow" hack was done primarily as a "checkbox" item, and
> also because it is not an option for the "diff" family (it is an option
> for the "log" family), I would personally think that it is actually a bug
> that "git diff" accepts "--follow" and pretends as if it is doing useful
> work, but does so only some of the time.
>
>    $ git diff --follow --name-status maint master -- builtin/log.c
>    R089        builtin-log.c   builtin/log.c
>    $ git diff --follow --name-status -R maint master -- builtin/log.c
>    D   builtin/log.c
>    $ git diff --follow --name-status master maint -- builtin/log.c
>    D   builtin/log.c

I am really wondering, when -R is used, how the file rename/copy should defined? Now, I can make -R works with --follow, and it produce something like:

byang@byang-laptop:~/git/git$ ./git diff --follow --name-status maint master -- builtin/log.c R089 builtin-log.c builtin/log.c byang@byang-laptop:~/git/git$ ./git diff --follow --name-status -R maint master -- builtin/log.c R089 builtin/log.c builtin-log.c byang@byang-laptop:~/git/git$ ./git diff --follow --name-status master maint -- builtin/log.c D builtin/log.c byang@byang-laptop:~/git/git$ ./git diff --follow --name-status -R master maint -- builtin/log.c A builtin/log.c

The problem is whether it make sense to say 'builtin/log.c renamed to builtin-log.c' when -R is given?

Regards! Bo

Previous: Bo YangNext: Junio C Hamano
Message 4 of 5 in “Make --follow support --find-copies-harder.”
  1. Make --follow support --find-copies-harder.Bo Yang, Apr 20, 2010
  2. Junio C HamanoApr 21, 2010
  3. Bo YangApr 21, 2010
  4. Bo YangApr 21, 2010
  5. Junio C HamanoApr 21, 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.