Interface ScmCompareCommandFactory
public interface ScmCompareCommandFactory
Creates
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.
-
Method Summary
Modifier and TypeMethodDescriptionchanges
(CompareChangeCommandParameters parameters, ChangeCallback callback) commits
(CommitCallback callback) diff
(CompareDiffCommandParameters parameters, DiffContentCallback callback) Retrieves the diff stats summary for the diff between two given commits
-
Method Details
-
changes
@Nonnull Command<Void> changes(@Nonnull CompareChangeCommandParameters parameters, @Nonnull ChangeCallback callback) -
commits
-
diff
@Nonnull Command<Void> diff(@Nonnull CompareDiffCommandParameters parameters, @Nonnull DiffContentCallback callback) -
diffStatsSummary
@Nonnull Command<DiffStatsSummary> diffStatsSummary(@Nonnull CompareDiffStatsSummaryCommandParameters parameters) Retrieves the diff stats summary for the diff between two given commitsThe stats summary include the total number of modified files, added lines, and deleted lines.
- Parameters:
parameters
- parameters describing the paths to diff and what should be included in the diff summary generated- Returns:
- a command which, when executed, will retrieve the
diff stats summary
between thefrom ref
and theto ref
for the specified paths - Since:
- 9.1
- See Also:
-