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

gitk --follow doesn't show changes correctly

From
Petr Onderka <gsvick@gmail.com>
Date
Jun 21, 2012, 12:56 UTC
Message-ID
<CAPyqok3Nh7jzwDS31xnFQm1h9=ttxmqoYt_tsLLUqpmi_4NWcQ@mail.gmail.com>
Hi,

if I try to see the history of a file across copies by "gitk --follow file", it seems it shows the correct revisions (although disconnected), but for revisions that modify the file under some older name, the diff of those changes is not shown.

For example, I have a file f1, modify it in revision A, then copy it to f2 and modify it in revision B, and finally modify f2 in revision C.

If I execute "gitk --follow f2", I can see revisions A, B and C. But in revision B, the diff shown contains the whole of f2 (as a new file) and the diff for revision A is completely empty.

What I'd like to see in revision B is the diff between f2 and f1 at that point and in revision A the diff for f1.

I don't think gitk can do this currently (I'm using v1.7.11.msysgit.0), so, unless I'm mistaken, consider this as a feature request (or a bug report).

Petr Onderka
Next: Johannes Sixt
Message 1 of 2 in “gitk --follow doesn't show changes correctly”
  1. Petr OnderkaJun 21, 2012
  2. Johannes SixtJun 21, 2012

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.