{"thread":{"id":"32839","subject":"How to diff 2 file revisions with gitk","startedAt":"2013-02-06T15:57:53Z","lastAt":"2013-02-08T06:21:14Z","messageCount":3,"participants":["R. Diez","Johannes Sixt","Sitaram Chamarty"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"208815","messageId":"1360166273.33888.YahooMailNeo@web171204.mail.ir2.yahoo.com","threadId":"32839","inReplyTo":"1360164008.49200.YahooMailNeo@web171204.mail.ir2.yahoo.com","subject":"How to diff 2 file revisions with gitk","fromName":"R. Diez","fromEmail":"rdiezmail-buspirate@yahoo.de","sentAt":"2013-02-06T15:57:53Z","receivedAt":"2013-02-06T15:57:53Z","isPatch":false,"sender":{"key":"rdiezmail-buspirate@yahoo.de","avatar":null},"body":"Hi there:\n\nI asked a few days ago whether I could easily diff 2 file revisions with the mouse in gitk, but I got no reply yet, see here:\n\n\n   How to diff two file revisions with the mouse (with gitk)\n   https://groups.google.com/forum/#!topic/git-users/9znsQsTB0dE\n\nI am hoping that it was the wrong mailing list, and this one the right one. 8-)\n\nHere is the full question text again:\n\n--------8<--------8<--------8<--------8<--------\n\nI would like to start gitk, select with the mouse 2 \nrevisions of some file and then compare them, hopefully with an external\n diff tool, very much like I am used to with WinCVS.\n\nThe closest I\n got is to start gitk with a filename as an argument, in order to \nrestrict the log to that one file. Then I right-click on a commit (a \nfile revision) and choose \"Mark this commit\". However, if I right-click \non another commit and choose \"Compare with marked commit\", I get a full \ncommit diff with all files, and not just the file I specified on the \ncommand-line arguments.\n\nSelecting a filename in the \"Tree\" view and choosing \"Highlight this only\", as I found on the Internet, does not seem to help.\n\nI have git 1.7.9 (on Cygwin). Can someone help?\n\nBy the way, it would be nice if gitk could launch the external diff tool from the \"Compare with marked commit\" option too.\n\n--------8<--------8<--------8<--------8<--------\n\nThanks in advance,\n   rdiez\n"},{"id":"208828","messageId":"51129C42.4040207@kdbg.org","threadId":"32839","inReplyTo":"1360166273.33888.YahooMailNeo@web171204.mail.ir2.yahoo.com","subject":"Re: How to diff 2 file revisions with gitk","fromName":"Johannes Sixt","fromEmail":"j6t@kdbg.org","sentAt":"2013-02-06T18:09:06Z","receivedAt":"2013-02-06T18:09:06Z","isPatch":false,"sender":{"key":"j6t@kdbg.org","avatar":"https://avatars.githubusercontent.com/u/14810926?v=4"},"body":"Am 06.02.2013 16:57, schrieb R. Diez:\n> I would like to start gitk, select with the mouse 2 \n> revisions of some file and then compare them, hopefully with an external\n>  diff tool, very much like I am used to with WinCVS.\n> \n> The closest I\n>  got is to start gitk with a filename as an argument, in order to \n> restrict the log to that one file. Then I right-click on a commit (a \n> file revision) and choose \"Mark this commit\". However, if I right-click \n> on another commit and choose \"Compare with marked commit\", I get a full \n> commit diff with all files, and not just the file I specified on the \n> command-line arguments.\n\nEdit->Preferences, tick 'Limit diff to listed paths'.\n\n-- Hannes\n"},{"id":"208980","messageId":"CAMK1S_jEbSd9=OFy++vv_S8ZP8bdFz=md7iuz3VHUQqwKDMBKA@mail.gmail.com","threadId":"32839","inReplyTo":"1360166273.33888.YahooMailNeo@web171204.mail.ir2.yahoo.com","subject":"Re: How to diff 2 file revisions with gitk","fromName":"Sitaram Chamarty","fromEmail":"sitaramc@gmail.com","sentAt":"2013-02-08T06:21:14Z","receivedAt":"2013-02-08T06:21:14Z","isPatch":false,"sender":{"key":"sitaramc@gmail.com","avatar":"https://avatars.githubusercontent.com/u/43316?v=4"},"body":"On Wed, Feb 6, 2013 at 9:27 PM, R. Diez <rdiezmail-buspirate@yahoo.de> wrote:\n> Hi there:\n>\n> I asked a few days ago whether I could easily diff 2 file revisions with the mouse in gitk, but I got no reply yet, see here:\n>\n>\n>    How to diff two file revisions with the mouse (with gitk)\n>    https://groups.google.com/forum/#!topic/git-users/9znsQsTB0dE\n>\n> I am hoping that it was the wrong mailing list, and this one the right one. 8-)\n>\n> Here is the full question text again:\n>\n> --------8<--------8<--------8<--------8<--------\n>\n> I would like to start gitk, select with the mouse 2\n> revisions of some file and then compare them, hopefully with an external\n>  diff tool, very much like I am used to with WinCVS.\n>\n> The closest I\n>  got is to start gitk with a filename as an argument, in order to\n> restrict the log to that one file. Then I right-click on a commit (a\n> file revision) and choose \"Mark this commit\". However, if I right-click\n> on another commit and choose \"Compare with marked commit\", I get a full\n> commit diff with all files, and not just the file I specified on the\n> command-line arguments.\n>\n> Selecting a filename in the \"Tree\" view and choosing \"Highlight this only\", as I found on the Internet, does not seem to help.\n>\n> I have git 1.7.9 (on Cygwin). Can someone help?\n>\n> By the way, it would be nice if gitk could launch the external diff tool from the \"Compare with marked commit\" option too.\n\nI don't know if I misunderstood the whole question because the answer\nis very simple.\n\n  - start gitk\n  - left click the newer commit\n  - scroll to the older commit\n  - right click the older commit and choose \"Diff this -> selected\"\n  - in the bottom right pane, pick any file, right click, and choose\n\"External diff\".\n"}]}