[merge] Hide changes between ancestor and current for cherry-pick
commitaaed129d046863f4c76aa64beee211df594789e1
authorThomas Wolf <thomas.wolf@paranor.ch>
Thu, 29 Apr 2021 13:39:15 +0000 (29 15:39 +0200)
committerMatthias Sohn <matthias.sohn@sap.com>
Tue, 1 Jun 2021 10:32:05 +0000 (1 12:32 +0200)
tree254ee9319df9536ae216e479ad66af9c1d5e8444
parent5996134fd793388bf747052023bf9ffacab21072
[merge] Hide changes between ancestor and current for cherry-pick

By default hide these changes. The ancestor in a cherry-pick is a
parent commit of 'theirs' (the commit that was cherry-picked); the
differences between that parent and the current version are simply
not interesting and even misleading.

Add an action to the content merge viewer's toolbar to allow the user
to toggle this setting for three-way comparisons.

Bug: 441149
Change-Id: I154cbecd445ef4481a1288c87c0e6e9cf498651f
Signed-off-by: Thomas Wolf <thomas.wolf@paranor.ch>
16 files changed:
icons/org.eclipse.egit.ui/icons/etool16/merge_ignore_left.svg [new file with mode: 0644]
icons/org.eclipse.egit.ui/icons/etool16/merge_ignore_right.svg [new file with mode: 0644]
org.eclipse.egit.ui/icons/etool16/merge_ignore_left.png [new file with mode: 0644]
org.eclipse.egit.ui/icons/etool16/merge_ignore_left@2x.png [new file with mode: 0644]
org.eclipse.egit.ui/icons/etool16/merge_ignore_right.png [new file with mode: 0644]
org.eclipse.egit.ui/icons/etool16/merge_ignore_right@2x.png [new file with mode: 0644]
org.eclipse.egit.ui/plugin.properties
org.eclipse.egit.ui/plugin.xml
org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/UIIcons.java
org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/UIText.java
org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/merge/CompareEditorInputViewerAction.java [new file with mode: 0644]
org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/merge/GitMergeEditorInput.java
org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/merge/MergeDiffNode.java [new file with mode: 0644]
org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/merge/ToggleCurrentChangesAction.java [new file with mode: 0644]
org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/revision/NotifiableDiffNode.java
org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/uitext.properties