pkaeding
pkaeding

Reputation: 37633

How can I compare two revisions in git in Eclipse?

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?

Upvotes: 57

Views: 72097

Answers (1)

slothbear
slothbear

Reputation: 2046

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.

Upvotes: 78

Related Questions