Fix compare error by checking if blob is contained in commit
commit070b2a2476973a1ed41dcff94fc41e5ad36bc528
authorStefan Lay <stefan.lay@sap.com>
Tue, 25 May 2010 10:41:30 +0000 (25 12:41 +0200)
committerStefan Lay <stefan.lay@sap.com>
Tue, 25 May 2010 10:41:30 +0000 (25 12:41 +0200)
treed630c5076f5284312399bcfe556d5dfcc2d5ef7f
parent055dec2839120054cf2d09c280c141b751e8dee1
Fix compare error by checking if blob is contained in commit

Opening compare editor on a deleted file in the file list
of the History View caused a message to be logged. The
reason was that the blob was not found in the commit.

This patch makes use of code that was already available
for other compare actions. To allow for reuse, a new
class CompareUtils is introduced.

Bug: 312852
Signed-off-by: Stefan Lay <stefan.lay@sap.com>
org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/CompareUtils.java [new file with mode: 0644]
org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/actions/CompareWithHeadAction.java
org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/history/CommitFileDiffViewer.java
org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/history/GitHistoryPage.java