public class

CommonAncestorRequest

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

Class Overview

Defines a request for determining the common ancestor of a list of commits.

Summary

Nested Classes
class CommonAncestorRequest.Builder  
Public Methods
@Nonnull Set<String> getCommitIds()
@Nonnull Repository getRepository()
@Nullable Repository getSecondaryRepository()
When determining the common ancestor of commits in different repositories, retrieves the secondary repository.
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

@Nonnull public Set<String> getCommitIds ()

Returns
  • the IDs of the commits whose common ancestor should be determined

@Nonnull public Repository getRepository ()

Returns
  • the repository to determine the common ancestor in

@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