Interface PluginCompareCommandFactory
public interface PluginCompareCommandFactory
Specialized command factory to compare two refs.
-
Method Summary
Modifier and TypeMethodDescriptioncom.atlassian.bitbucket.scm.Command<Void>changes(com.atlassian.bitbucket.compare.CompareRequest compareRequest, com.atlassian.bitbucket.scm.compare.CompareChangeCommandParameters parameters, com.atlassian.bitbucket.content.ChangeCallback callback) com.atlassian.bitbucket.scm.Command<Void>commits(com.atlassian.bitbucket.compare.CompareRequest compareRequest, com.atlassian.bitbucket.commit.CommitCallback callback) com.atlassian.bitbucket.scm.Command<Void>diff(com.atlassian.bitbucket.compare.CompareRequest compareRequest, com.atlassian.bitbucket.scm.compare.CompareDiffCommandParameters parameters, com.atlassian.bitbucket.content.DiffContentCallback callback) com.atlassian.bitbucket.scm.Command<com.atlassian.bitbucket.content.DiffStatsSummary>diffStatsSummary(com.atlassian.bitbucket.compare.CompareRequest compareRequest, com.atlassian.bitbucket.scm.compare.CompareDiffStatsSummaryCommandParameters parameters) Retrieve the diff stats summary for the specifiedrequest.
-
Method Details
-
changes
@Nonnull com.atlassian.bitbucket.scm.Command<Void> changes(@Nonnull com.atlassian.bitbucket.compare.CompareRequest compareRequest, @Nonnull com.atlassian.bitbucket.scm.compare.CompareChangeCommandParameters parameters, @Nonnull com.atlassian.bitbucket.content.ChangeCallback callback) -
commits
@Nonnull com.atlassian.bitbucket.scm.Command<Void> commits(@Nonnull com.atlassian.bitbucket.compare.CompareRequest compareRequest, @Nonnull com.atlassian.bitbucket.commit.CommitCallback callback) - Parameters:
compareRequest- describes the refs being comparedcallback- a callback to receive commits which are unique to thefrom ref- Returns:
- a command which, when executed, will stream commits referenced by the
from refwhich are not referenced by theto ref
-
diff
@Nonnull com.atlassian.bitbucket.scm.Command<Void> diff(@Nonnull com.atlassian.bitbucket.compare.CompareRequest compareRequest, @Nonnull com.atlassian.bitbucket.scm.compare.CompareDiffCommandParameters parameters, @Nonnull com.atlassian.bitbucket.content.DiffContentCallback callback) -
diffStatsSummary
@Nonnull com.atlassian.bitbucket.scm.Command<com.atlassian.bitbucket.content.DiffStatsSummary> diffStatsSummary(@Nonnull com.atlassian.bitbucket.compare.CompareRequest compareRequest, @Nonnull com.atlassian.bitbucket.scm.compare.CompareDiffStatsSummaryCommandParameters parameters) Retrieve the diff stats summary for the specifiedrequest.The stats summary include the total number of modified files, added lines, and deleted lines.
- Parameters:
compareRequest- the repository, starting and terminating commits, paths to filter by and other properties describing the diffparameters- parameters describing the paths to diff and what should be included in the diff stat summary generated- Returns:
- a command which, when executed, will retrieve the
diff stats summaryfor the specified request - Since:
- 9.1
-