How can I compare two revisions in git in Eclipse?

EclipseGit

Eclipse Problem Overview


I am using the eclipse plugin for Git on Mac OS 10.6, and I cannot figure out how to compare two version of a file. I can pull up the file's history, and see all of the commits, with their messages, but I can't figure out how to see what changed in each commit.

This was very easy with subversion, and I'm sure its easy with Git, if you know where to look (but apparently, I don't).

Any pointers would be greatly appreciated.

To elaborate on my question, is there a way to access git-diff in the eclipse plugin?

Eclipse Solutions


Solution 1 - Eclipse

From the EGit User Guide:

> select a Resource (project, folder, or file) in the project explorer > or navigator and right-click an action under Compare With.

I just tested this with EGit 1.3.0. You can compare with a commit, HEAD, previous revision, "branch, tag, or reference", Git index, or any item in History.

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionpkaedingView Question on Stackoverflow
Solution 1 - EclipseslothbearView Answer on Stackoverflow