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

[RFC diff-tree -c with copy/rename]

From
MCMarco Costalba <mcostalba@gmail.com>
Date
Aug 17, 2006, 11:02 UTC
Message-ID
<e5bfff550608170402w25b9eaeaqe69665bdddaead3c@mail.gmail.com>
>From current git tree:
$ git-diff-tree -r -m -C bb266cb118 (I removed extra useless lines)

bb266cb11842f76712ebff1d8b1bd086dc65337f :100644 100644 dfb1c44 8d0dbad R093 checkout-index.c builtin-checkout-index.c :100644 100644 357970d 7d39d9b R083 verify-pack.c builtin-verify-pack.c :100644 100644 6484cb9 6484cb9 R100 builtin-help.c help.c

bb266cb11842f76712ebff1d8b1bd086dc65337f :100644 100644 29ea6fd 8d0dbad M builtin-checkout-index.c :100644 100644 d700761 7d39d9b M builtin-verify-pack.c :100644 100644 7a7f775 6484cb9 M help.c

$ git-diff-tree -r -c -C bb266cb118

bb266cb11842f76712ebff1d8b1bd086dc65337f ::100644 100644 100644 dfb1c44 29ea6f 8d0dbad RM builtin-checkout-index.c ::100644 100644 100644 357970d d70076 7d39d9b RM builtin-verify-pack.c ::100644 100644 100644 6484cb9 7a7f77 6484cb9 RM help.c

Is it correct do not show in -c case:
- the similarity value
- the origin file:
As example
'R093MM	checkout-index.c builtin-checkout-index.c'
 instead of current
'RM	builtin-checkout-index.c'

Thanks Marco

P.S: -c with --stat gives both origin and destination files (checkout-index.c and builtin-checkout-index.c):

$ git-diff-tree -r -c -C --stat bb266cb118
bb266cb11842f76712ebff1d8b1bd086dc65337f
 Makefile                                     |   81 +++++++++++++++---------
 checkout-index.c => builtin-checkout-index.c |   26 ++++----
 builtin-count.c => builtin-count-objects.c   |    0
 name-rev.c => builtin-name-rev.c             |    4 +
 pack-objects.c => builtin-pack-objects.c     |    4 +
 symbolic-ref.c => builtin-symbolic-ref.c     |    4 +
 unpack-objects.c => builtin-unpack-objects.c |    7 +-
 verify-pack.c => builtin-verify-pack.c       |   15 ++---
 builtin.h                                    |   80 ++++++++++++------------
 git.c                                        |   86 ++++++++++++++------------
 builtin-help.c => help.c                     |    0
 11 files changed, 166 insertions(+), 141 deletions(-)
Next: Junio C Hamano
Message 1 of 2 in “[RFC diff-tree -c with copy/rename]”
  1. Marco CostalbaAug 17, 2006
  2. Junio C HamanoAug 18, 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.