Package com.atlassian.bitbucket.content
Class PatchRequest
java.lang.Object
com.atlassian.bitbucket.content.PatchRequest
Describes a request to format a patch of a given repository for a given commit or commit range.
- Since:
- 6.7
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionRetrieves the secondary repository from which to generate the patch.Retrieves the base revision from which to generate the patch.boolean
-
Method Details
-
getRepository
- Returns:
- the repository
-
getSecondaryRepository
Retrieves the secondary repository from which to generate the patch. Commits in this repository may only be identified by hash. Any branch or tag names used will always be resolved using theprimary repository
.- Returns:
- a secondary repository from which to generate the patch
-
getSinceId
Retrieves the base revision from which to generate the patch. This is only applicable whenisAllAncestors()
is false. If omitted the patch will represent one single commit, theuntil ID
.- Returns:
- the base revision from which to generate the patch
-
getUntilId
- Returns:
- the target revision from which to generate the patch
-
isAllAncestors
public boolean isAllAncestors()
-