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

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

From
Junio C Hamano <junkio@cox.net>
Date
Aug 18, 2006, 04:09 UTC
Message-ID
<7v3bbuelcj.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<e5bfff550608170402w25b9eaeaqe69665bdddaead3c@mail.gmail.com>
"Marco Costalba" <mcostalba@gmail.com> writes:
Show 7 quoted lines
> As example
>
> 'R093MM	checkout-index.c builtin-checkout-index.c'
>
> instead of current
>
> 'RM	builtin-checkout-index.c'

I am not particularly opposed to have an option to do this. I originally did not show this because I did not particularly find it interesting (and I still don't). The output would become a very long line, not for human consumption, though.

But it should not be too involved if you want to do this. We already compute all the information necessary to do so before combine-diff.c::intersect_paths() converts the usual <from,to> representation (struct diff_filepair) into <result, list of parents' blobs> representation (struct combine_diff_path), which is used by combine-diff.c routines.

We currently do not retain that information when this conversion happens to be used for the output. You would need to add a few fields to record the preimage filename, similarity score and status in struct combine_diff_parent and populate them in intersect_paths() and adjust the output routines.

Previous: Marco Costalba
Message 2 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.