public interface DiffFromHistoryHandler
intellij.platform.vcs.impl.
Custom handlers should be returned via VcsHistoryProvider.getHistoryDiffHandler().| Modifier and Type | Method and Description |
|---|---|
void |
showDiffForOne(AnActionEvent e,
Project project,
FilePath filePath,
VcsFileRevision previousRevision,
VcsFileRevision revision)
Show diff when a single revision is selected in the file history panel.
|
void |
showDiffForTwo(Project project,
FilePath filePath,
VcsFileRevision revision1,
VcsFileRevision revision2)
Show diff for 2 revisions selected from the file history panel,
or "Show Diff with Local" (then the second revision is a
CurrentRevision. |
void showDiffForOne(AnActionEvent e, Project project, FilePath filePath, VcsFileRevision previousRevision, VcsFileRevision revision)
e - AnActionEvent which happened, when user invoked "Show Diff".filePath - the file which history is shown.previousRevision - the previous revision in the list displayed file history panel, may be VcsFileRevision.NULL.revision - the revision selected in the file history panel.void showDiffForTwo(Project project, FilePath filePath, VcsFileRevision revision1, VcsFileRevision revision2)
CurrentRevision.
The order of selected revisions is not defined.filePath - the file which history is shown.revision1 - one of the selected revisions.revision2 - another selected revision.