Disable "Compare with previous" for deletions
commit9cf5c4a0fa4718d2070b1dac3b7bc7eb17784de2
authorThomas Wolf <thomas.wolf@paranor.ch>
Tue, 17 Jul 2018 09:34:51 +0000 (17 11:34 +0200)
committerThomas Wolf <thomas.wolf@paranor.ch>
Tue, 17 Jul 2018 09:34:51 +0000 (17 11:34 +0200)
treee945cc4914dbb3179a4a21cb5b3ad253aaab02b3
parentd3a2f47f1aeba79b76d8929bd26c1828a9724e07
Disable "Compare with previous" for deletions

"Compare with Previous" in the history view and in the commit viewer
outline makes no sense for deletions. The operation makes only sense
if both a new and an old version exist.

Bug: 536799
Change-Id: Id08200fe9900942cd83a9da0e1badfd075a5590b
Signed-off-by: Thomas Wolf <thomas.wolf@paranor.ch>
org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/commit/DiffEditorOutlinePage.java
org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/history/CommitFileDiffViewer.java