Fix comparison of SWTCommit to detect changed selection
commit4b624c01b0bb8bb380ba29504ce5fd5ba66aeb6c
authorThomas Wolf <thomas.wolf@paranor.ch>
Sat, 18 Aug 2018 20:24:59 +0000 (18 22:24 +0200)
committerThomas Wolf <thomas.wolf@paranor.ch>
Sat, 18 Aug 2018 20:24:59 +0000 (18 22:24 +0200)
treea0000c05066bd3ea802808d29e0c9df7fd17b76d
parent6255f8e1e5d1d840cd9bb047cffd5efa842c199a
Fix comparison of SWTCommit to detect changed selection

Commit d3b1c74 avoided unnecessary re-loading of the commit and
file diffs if the same commit was selected again. Change the
comparison from equals() to ==. Equals would compare the object
ids only, and thus suppress updates when only the parents had
changed.

Change-Id: I54389ad6d0ffc37cb5e127c5b3d4a9c1c8fc900a
Signed-off-by: Thomas Wolf <thomas.wolf@paranor.ch>
org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/history/GitHistoryPage.java