Patch Set 1: (1 inline comment)

It is almost ready change. There is only one thing that should be fixed. The left hand side editor in compare view is always empty for non-workspace files that wasn't staged already.

I'm testing it on egit project with changed master pom file. This file is listed in egit change set but when you launch compare editor for it the left hand side editor is empty.

From my investigations appears that when we create an IFile resource using IWorkspace.getFile() the exist() method called on this new instance will return false with seams to be a problem here, also getLocation() method returns null, please see inline comment in GitLocalCompareInput