public interface VcsLogDiffHandler
Modifier and Type | Method and Description |
---|---|
ContentRevision |
createContentRevision(FilePath filePath,
Hash hash)
Create a ContentRevision for specified path and commit.
|
void |
showDiff(VirtualFile root,
FilePath leftPath,
Hash leftHash,
FilePath rightPath,
Hash rightHash)
Show diff between (the after-state of) two revisions in the specified files or directories.
|
void |
showDiffForPaths(VirtualFile root,
java.util.Collection<FilePath> affectedPaths,
Hash leftRevision,
Hash rightRevision)
Show diff between two revisions or between a revision and a local version for the specified set of paths.
|
void |
showDiffWithLocal(VirtualFile root,
FilePath revisionPath,
Hash hash,
FilePath localPath)
Show diff between (the after-state of) specified revision and local version for the specified file or directory.
|
void showDiff(VirtualFile root, FilePath leftPath, Hash leftHash, FilePath rightPath, Hash rightHash)
root
- repository root.leftPath
- path to the file on the left, null means file is missing in this revision.leftHash
- hash of the revision on the left.rightPath
- path to the file on the right, null means file is missing in this revision.rightHash
- hash of the revision on the right.void showDiffWithLocal(VirtualFile root, FilePath revisionPath, Hash hash, FilePath localPath)
root
- repository root.revisionPath
- path to the file in the specified revision, null means file is not present in the revision.hash
- hash of the revision.localPath
- local path to the file.void showDiffForPaths(VirtualFile root, java.util.Collection<FilePath> affectedPaths, Hash leftRevision, Hash rightRevision)
root
- repository root.affectedPaths
- paths for which to show diff, null means to show all changes between revisions.leftRevision
- hash of the revision on the left.rightRevision
- hash of the revision on the right or null if local revision is required.ContentRevision createContentRevision(FilePath filePath, Hash hash)
filePath
- file path to create content revision for.hash
- hash of the revision.