final String commit1Path = getRenamedPath(gitPath, commit1);
final String commit2Path = getRenamedPath(gitPath, commit2);
CompareUtils.openInCompare(commit1, commit2, commit1Path,
commit2Path, repo, workBenchPage);
} else if (input instanceof IResource) {
GitCompareEditorInput compareInput = new GitCompareEditorInput(
commit1.name(), commit2.name(), (IResource) input);
CompareUtils.openInCompare(workBenchPage, compareInput);
} else if (input == null) {
GitCompareEditorInput compareInput = new GitCompareEditorInput(
commit1.name(), commit2.name(), repo);
CompareUtils.openInCompare(workBenchPage, compareInput);
}
}
return null;