{"thread":{"id":"15808","subject":"RFH: gitk equivalent of \"git log -p --full-diff file.cpp\"","startedAt":"2008-10-07T02:04:14Z","lastAt":"2008-10-07T03:45:53Z","messageCount":3,"participants":["Eric Raible","Jeff King"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"92474","messageId":"279b37b20810061904n4f50f650l81590cb6fd239282@mail.gmail.com","threadId":"15808","inReplyTo":null,"subject":"RFH: gitk equivalent of \"git log -p --full-diff file.cpp\"","fromName":"Eric Raible","fromEmail":"raible@gmail.com","sentAt":"2008-10-07T02:04:14Z","receivedAt":"2008-10-07T02:04:14Z","isPatch":false,"sender":{"key":"raible@gmail.com","avatar":null},"body":"Hello All -\n\nHopefully I'm just being dense, but there's a useful tortoisesvn feature that\n(so far) I haven't found in gitk.  Blasphemy!  Sniveling windoze luser, etc^2.\n\nAnyway what I'm looking for is the gitk equivalent of:\n\n    git log -p --full-diff file.cpp\n\nThat is to say: I want to see all commits which touch a given\nfile along with all of the other files changed by that commit.\n\n    gitk -p --full-diff EntryPoints.cpp\n\ndoesn't quite do it - it treats the \"extra\" diffs as part of the commit msg.\nAnyone got more if a clue than me?\n\nThanks - Eric\n\nPS - Aside from aliases, am I missing a simpler spelling of the above\n     git log command?\n"},{"id":"92478","messageId":"20081007022705.GA4496@coredump.intra.peff.net","threadId":"15808","inReplyTo":"279b37b20810061904n4f50f650l81590cb6fd239282@mail.gmail.com","subject":"Re: RFH: gitk equivalent of \"git log -p --full-diff file.cpp\"","fromName":"Jeff King","fromEmail":"peff@peff.net","sentAt":"2008-10-07T02:27:05Z","receivedAt":"2008-10-07T02:27:05Z","isPatch":false,"sender":{"key":"peff@peff.net","avatar":"https://avatars.githubusercontent.com/u/45925?v=4"},"body":"On Mon, Oct 06, 2008 at 07:04:14PM -0700, Eric Raible wrote:\n\n> Anyway what I'm looking for is the gitk equivalent of:\n> \n>     git log -p --full-diff file.cpp\n\nTry turning off the option \"Limit diffs to listed paths\" in the\npreferences menu (or adding \"set limitdiffs 0\" to your ~/.gitk).\n\n> That is to say: I want to see all commits which touch a given\n> file along with all of the other files changed by that commit.\n> \n>     gitk -p --full-diff EntryPoints.cpp\n\nYou definitely don't want the \"-p\" here, which is what is causing the\nextra diffs as part of the commit message. What happens is that gitk\nactually gets the diff separately from the history (since it gets each\ndiff on the fly as you highlight it). The command line arguments go\ntowards getting the history; so gitk isn't expecting parse any diff (and\nyou will make gitk startup a _lot_ slower as it waits for git to\ngenerate the diffs for every revision).\n\nThe \"--full-diff\" is simply ignored, since the actual diff happens\nduring a later command.  In theory, gitk could remember your --full-diff\nand use it later. But I think for your use, the preference setting\nis probably good enough.\n\n> PS - Aside from aliases, am I missing a simpler spelling of the above\n>      git log command?\n\nNope, it looks right to me. At one point, we discussed a \"full-diff\"\nconfig option (and I think I maybe even posted a patch), but nobody\nreally cared.\n\n-Peff\n"},{"id":"92483","messageId":"279b37b20810062045j1bf7a4b3tf2c246ae8d29b045@mail.gmail.com","threadId":"15808","inReplyTo":"20081007022705.GA4496@coredump.intra.peff.net","subject":"Re: RFH: gitk equivalent of \"git log -p --full-diff file.cpp\"","fromName":"Eric Raible","fromEmail":"raible@gmail.com","sentAt":"2008-10-07T03:45:53Z","receivedAt":"2008-10-07T03:45:53Z","isPatch":false,"sender":{"key":"raible@gmail.com","avatar":null},"body":"On Mon, Oct 6, 2008 at 7:27 PM, Jeff King <peff@peff.net> wrote:\n> On Mon, Oct 06, 2008 at 07:04:14PM -0700, Eric Raible wrote:\n>\n>> Anyway what I'm looking for is the gitk equivalent of:\n>>\n>>     git log -p --full-diff file.cpp\n>\n> Try turning off the option \"Limit diffs to listed paths\" in the\n> preferences menu (or adding \"set limitdiffs 0\" to your ~/.gitk).\n\nYes, that's exactly what I was looking for.\n\nThanks - Eric\n"}]}