{"thread":{"id":"30858","subject":"gitk --follow doesn't show changes correctly","startedAt":"2012-06-21T12:56:01Z","lastAt":"2012-06-21T13:09:17Z","messageCount":2,"participants":["Petr Onderka","Johannes Sixt"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"194034","messageId":"CAPyqok3Nh7jzwDS31xnFQm1h9=ttxmqoYt_tsLLUqpmi_4NWcQ@mail.gmail.com","threadId":"30858","inReplyTo":null,"subject":"gitk --follow doesn't show changes correctly","fromName":"Petr Onderka","fromEmail":"gsvick@gmail.com","sentAt":"2012-06-21T12:56:01Z","receivedAt":"2012-06-21T12:56:01Z","isPatch":false,"sender":{"key":"gsvick@gmail.com","avatar":"https://avatars.githubusercontent.com/u/287848?v=4"},"body":"Hi,\n\nif I try to see the history of a file across copies by \"gitk --follow file\",\nit seems it shows the correct revisions (although disconnected),\nbut for revisions that modify the file under some older name,\nthe diff of those changes is not shown.\n\nFor example, I have a file f1, modify it in revision A,\nthen copy it to f2 and modify it in revision B,\nand finally modify f2 in revision C.\n\nIf I execute \"gitk --follow f2\", I can see revisions A, B and C.\nBut in revision B, the diff shown contains the whole of f2 (as a new file)\nand the diff for revision A is completely empty.\n\nWhat I'd like to see in revision B is the diff between f2 and f1 at that point\nand in revision A the diff for f1.\n\nI don't think gitk can do this currently (I'm using v1.7.11.msysgit.0),\nso, unless I'm mistaken, consider this as a feature request (or a bug report).\n\nPetr Onderka\n"},{"id":"194035","messageId":"4FE31CFD.1000208@viscovery.net","threadId":"30858","inReplyTo":"CAPyqok3Nh7jzwDS31xnFQm1h9=ttxmqoYt_tsLLUqpmi_4NWcQ@mail.gmail.com","subject":"Re: gitk --follow doesn't show changes correctly","fromName":"Johannes Sixt","fromEmail":"j.sixt@viscovery.net","sentAt":"2012-06-21T13:09:17Z","receivedAt":"2012-06-21T13:09:17Z","isPatch":false,"sender":{"key":"j6t@kdbg.org","avatar":"https://avatars.githubusercontent.com/u/14810926?v=4"},"body":"Am 6/21/2012 14:56, schrieb Petr Onderka:\n> if I try to see the history of a file across copies by \"gitk --follow file\",\n> it seems it shows the correct revisions (although disconnected),\n> but for revisions that modify the file under some older name,\n> the diff of those changes is not shown.\n\n--follow is a bolted-on feature. Do not expect it to work according to\nyour expectations ;)\n\n> For example, I have a file f1, modify it in revision A,\n> then copy it to f2 and modify it in revision B,\n> and finally modify f2 in revision C.\n> \n> If I execute \"gitk --follow f2\", I can see revisions A, B and C.\n> But in revision B, the diff shown contains the whole of f2 (as a new file)\n> and the diff for revision A is completely empty.\n> \n> What I'd like to see in revision B is the diff between f2 and f1 at that point\n> and in revision A the diff for f1.\n\nTurn off \"Limit diffs to listed paths\" in gitk's settings. Perhaps this\nshows the changes (among the changes of all other files per commit, of\ncourse).\n\n-- Hannes\n"}]}