Community
Participate
Working Groups
Eclipse EGit 1.0.0.201106081625-r org.eclipse.egit.feature.group Eclipse EGit Eclipse JGit 1.0.0.201106081625-r org.eclipse.jgit.feature.group Eclipse JGit It seems that the history view's right click > compare with each other doesn't work in some circumstances. From a freshly started eclipse, with no editors open, I open the history view on a project and configured it to show all branches and show all changes in the repository. I then selected two neighbouring commits, where only one file was changed, and chose to 'compare with each other'. Having done this I get an empty compare editor. Trying again on the same two commits (without closing the empty compare editor), I get an NPE: java.lang.NullPointerException at org.eclipse.egit.ui.internal.merge.GitCompareEditorInput.equals(GitCompareEditorInput.java:378) at org.eclipse.egit.ui.internal.CompareUtils.findReusableCompareEditor(CompareUtils.java:297) at org.eclipse.egit.ui.internal.CompareUtils.openInCompare(CompareUtils.java:265) at org.eclipse.egit.ui.internal.history.command.AbstractHistoryCommandHandler.openInCompare(AbstractHistoryCommandHandler.java:71) at org.eclipse.egit.ui.internal.history.command.CompareVersionsHandler.execute(CompareVersionsHandler.java:73) at org.eclipse.ui.internal.handlers.HandlerProxy.execute(HandlerProxy.java:293) at org.eclipse.core.commands.Command.executeWithChecks(Command.java:476) at org.eclipse.core.commands.ParameterizedCommand.executeWithChecks(ParameterizedCommand.java:508) This happens reliably and repeatedly in 1.0.
Note that trying with the HEAD commit and its predecessor seems to work, but older commits in the history view don't seem to work.
maybe related. with a freshly started eclipse. compare file with head => works fine compare project with head => when I click any file in the egit tree view : no view open.
Fix pushed for review: https://git.eclipse.org/r/6479
merged as b927e3ac025f88285a0e1de7b376830d3778d8e9
*** Bug 368460 has been marked as a duplicate of this bug. ***