Package com.atlassian.bitbucket.content
Class DiffRequest
java.lang.Object
com.atlassian.bitbucket.content.AbstractDiffRequest
com.atlassian.bitbucket.content.DiffRequest
Describes a request to generate a diff of a given repository for a given commit or commit range.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.atlassian.bitbucket.content.AbstractDiffRequest
AbstractDiffRequest.AbstractBuilder<B extends AbstractDiffRequest.AbstractBuilder<B,
R>, R> -
Field Summary
Fields inherited from class com.atlassian.bitbucket.content.AbstractDiffRequest
DEFAULT_CONTEXT_LINES
-
Method Summary
Modifier and TypeMethodDescriptionRetrieves the secondary repository from which to generate the diff.boolean
boolean
Methods inherited from class com.atlassian.bitbucket.content.AbstractDiffRequest
getContextLines, getFilter, getPaths, getWhitespace, hasContextLines
-
Method Details
-
getRepository
- Returns:
- the repository to use
-
getSecondaryRepository
Retrieves the secondary repository from which to generate the diff. 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 diff
- Since:
- 6.7
-
getSinceId
- Returns:
- the "since" commit for the diff or
null
for theuntilId
's parent
-
getUntilId
- Returns:
- the "until" commit for the diff
-
isWithAutoSrcPath
public boolean isWithAutoSrcPath()- Returns:
true
if attempting to resolve the source path in case of a rename,false
otherwise. Only valid for a single path.- Since:
- 4.5
-
isWithComments
public boolean isWithComments()- Returns:
true
if the comment associated with the diff should be included in the response to this request.false
otherwise
-