Class CommonAncestorRequest

java.lang.Object
com.atlassian.bitbucket.commit.CommonAncestorRequest

public class CommonAncestorRequest extends Object
Defines a request for determining the common ancestor of a list of commits.
Since:
5.0
  • Method Details

    • getCommitIds

      @Nonnull public Set<String> getCommitIds()
      Returns:
      the IDs of the commits whose common ancestor should be determined
    • getRepository

      @Nonnull public Repository getRepository()
      Returns:
      the repository to determine the common ancestor in
    • getSecondaryRepository

      @Nullable public Repository getSecondaryRepository()
      When determining the common ancestor of commits in different repositories, retrieves the secondary repository.
      Returns:
      a secondary repository whose commits should be considered