Bug 284537 NPE when double-clicking for diff in commit dialog
commit12cba8fb047eb5099c0a222390c561f5eb2a8700
authorRobin Rosenberg <robin.rosenberg@dewire.com>
Fri, 24 Jul 2009 07:14:39 +0000 (24 09:14 +0200)
committerShawn O. Pearce <spearce@spearce.org>
Thu, 27 Aug 2009 01:19:21 +0000 (26 18:19 -0700)
tree5c2008aeaf16f8b584f1098b0acf45d111935656
parent6c319a6adb2130669818a27e9c14e7a1902174a9
Bug 284537 NPE when double-clicking for diff in commit dialog

An optimization in JGit made this code try to look up disposed RevObjects
from the walker used by the file history. Instead of looking up HEAD
after receiving the full history we now look up the last change to the
relevant file. Further we only ask for the last change which makes this
much faster than it was before it was broken.

From: https://bugs.eclipse.org/284537
Signed-off-by: Robin Rosenberg <robin.rosenberg@dewire.com>
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
org.eclipse.egit.core.test/src/org/eclipse/egit/core/internal/mapping/T0002_history.java
org.eclipse.egit.core/src/org/eclipse/egit/core/internal/storage/GitFileHistory.java
org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/dialogs/CommitDialog.java