public interface MergeSession
| Modifier and Type | Interface and Description |
|---|---|
static class |
MergeSession.Resolution |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canMerge(VirtualFile file)
Returns true if the given virtual file can be merged by its content.
|
void |
conflictResolvedForFile(VirtualFile file,
MergeSession.Resolution resolution)
Called when the user executes one of the resolve actions (merge, accept yours, accept theirs) for
a conflicting file.
|
ColumnInfo [] |
getMergeInfoColumns()
Returns the list of additional columns to be displayed in the dialog.
|
ColumnInfo [] getMergeInfoColumns()
boolean canMerge(VirtualFile file)
MergeSessionEx can be used to Accept Yours/Theirs via a custom procedure,
for example, via calling a VCS command. In this case this flag is ignored for Accept Yours/Theirs functionality,
but it still allows or disallows to press Merge and show the Merge dialog.file - a file with conflicts shown in the dialog.void conflictResolvedForFile(VirtualFile file, MergeSession.Resolution resolution)
file - the conflicting file.resolution - the used resolution.