*/
private static void compareLocalWithRef(Repository repository,
IPath location, String refName, IWorkbenchPage page)
throws IOException {
final String gitPath = getRepoRelativePath(location, repository);
final ITypedElement base = new LocalNonWorkspaceTypedElement(location);
CompareEditorInput in = prepareCompareInput(repository, gitPath, base,
refName);
if (page != null)