public interface ScmCompareCommandFactory
commands which allow comparing arbitrary refs or commits. Each method accepts a set of
CommandParameters which are used to control the command's behaviour and output.
Plugin developers: This is probably not the interface you want to use. CompareService
automatically chooses the correct SCM based on the repository, and provides a more stable, compatible API. The
documentation for each method on this interface includes a link to the API service method or methods which expose it.
| Modifier and Type | Method and Description |
|---|---|
Command<Void> |
changes(CompareChangeCommandParameters parameters,
ChangeCallback callback) |
Command<Void> |
commits(CommitCallback callback) |
Command<Void> |
diff(CompareDiffCommandParameters parameters,
DiffContentCallback callback) |
@Nonnull Command<Void> changes(@Nonnull CompareChangeCommandParameters parameters, @Nonnull ChangeCallback callback)
parameters - parameters describing how many changes to stream, and potentially for which pathscallback - a callback to receive changesfrom ref and the to refCompareService.streamChanges(CompareRequest, ChangeCallback)@Nonnull Command<Void> commits(@Nonnull CommitCallback callback)
callback - a callback to receive commitsfrom ref and not reachable from the
to refCompareService.streamCommits(CompareRequest, CommitCallback)@Nonnull Command<Void> diff(@Nonnull CompareDiffCommandParameters parameters, @Nonnull DiffContentCallback callback)
parameters - parameters describing the paths to diff and what should be included in the diffs generatedcallback - a callback to receive the difffrom ref and the to ref
for the specified pathsCompareService.streamDiff(CompareDiffRequest, DiffContentCallback)Copyright © 2019 Atlassian. All rights reserved.