public interface

PluginCompareCommandFactory

com.atlassian.bitbucket.scm.compare.PluginCompareCommandFactory

Class Overview

Specialized command factory to compare two refs.

Summary

Public Methods
@Nonnull Command<Void> changes(CompareRequest compareRequest, CompareChangeCommandParameters parameters, ChangeCallback callback)
@Nonnull Command<Void> commits(CompareRequest compareRequest, CommitCallback callback)
@Nonnull Command<Void> diff(CompareRequest compareRequest, CompareDiffCommandParameters parameters, DiffContentCallback callback)

Public Methods

@Nonnull public Command<Void> changes (CompareRequest compareRequest, CompareChangeCommandParameters parameters, ChangeCallback callback)

@Nonnull public Command<Void> commits (CompareRequest compareRequest, CommitCallback callback)

Parameters
compareRequest describes the refs being compared
callback a callback to receive commits which are unique to the from ref
Returns
  • a command which, when executed, will stream commits referenced by the from ref which are not referenced by the to ref

@Nonnull public Command<Void> diff (CompareRequest compareRequest, CompareDiffCommandParameters parameters, DiffContentCallback callback)