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

How to diff 2 file revisions with gitk

From
RDR. Diez <rdiezmail-buspirate@yahoo.de>
Date
Feb 6, 2013, 15:57 UTC
Message-ID
<1360166273.33888.YahooMailNeo@web171204.mail.ir2.yahoo.com>
In-Reply-To
<1360164008.49200.YahooMailNeo@web171204.mail.ir2.yahoo.com>
Hi there:
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:
   How to diff two file revisions with the mouse (with gitk)
   https://groups.google.com/forum/#!topic/git-users/9znsQsTB0dE
I am hoping that it was the wrong mailing list, and this one the right one. 8-)
Here is the full question text again:
--------8<--------8<--------8<--------8<--------
I would like to start gitk, select with the mouse 2 
revisions of some file and then compare them, hopefully with an external
 diff tool, very much like I am used to with WinCVS.
The closest I
 got is to start gitk with a filename as an argument, in order to 
restrict the log to that one file. Then I right-click on a commit (a 
file revision) and choose "Mark this commit". However, if I right-click 
on another commit and choose "Compare with marked commit", I get a full 
commit diff with all files, and not just the file I specified on the 
command-line arguments.
Selecting a filename in the "Tree" view and choosing "Highlight this only", as I found on the Internet, does not seem to help.
I have git 1.7.9 (on Cygwin). Can someone help?
By the way, it would be nice if gitk could launch the external diff tool from the "Compare with marked commit" option too.
--------8<--------8<--------8<--------8<--------
Thanks in advance,
   rdiez
Next: Johannes Sixt
Message 1 of 3 in “How to diff 2 file revisions with gitk”
  1. R. DiezFeb 6, 2013
  2. Johannes SixtFeb 6, 2013
  3. Sitaram ChamartyFeb 8, 2013

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.