On Mon, Aug 19, 2019 at 1:15 PM Junio C Hamano <gitster@xxxxxxxxx> wrote: > > I do agree that diff-lib.c::show_modified(), which is about "git > diff-cache" (and hence "git diff <tree-ish>", i.e. comparison > between a tree-ish and the index), is the right layer for this > change. > > I am not offhand sure about the diff.c::diff_change(), though, and > cannot say much without first thinking about it a bit more. I'm back! I made the changes to "struct diff_filespec" and diff_resolve_rename_copy() that I mentioned in my previous email on this thread, and it seems to work. But the patch seems very clunky. Even though it has been in the back of my mind for six months, I can't think of a more elegant approach. Furthermore, the few test cases that I could create are extremely unlikely in practice. For all of these reasons, I would rather avoid this patch altogether. v2 is still sitting in pu. Could we discard it? I'll send an update to the related patch [0] in a few minutes. [0]: https://public-inbox.org/git/20190821032100.73917-1-vcnaik94@xxxxxxxxx/ Best, Varun