Package com.atlassian.bitbucket.content
Class DiffStatsSummaryRequest.Builder
java.lang.Object
com.atlassian.bitbucket.util.BuilderSupport
com.atlassian.bitbucket.content.DiffStatsSummaryRequest.Builder
- Enclosing class:
- DiffStatsSummaryRequest
-
Field Summary
Fields inherited from class com.atlassian.bitbucket.util.BuilderSupport
NOT_BLANK
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionautoSrcPath
(boolean value) build()
secondaryRepository
(Repository value) Specifies the "since" commit for the diff.whitespace
(DiffWhitespace value) Methods inherited from class com.atlassian.bitbucket.util.BuilderSupport
addIf, addIf, addIf, addIf, addIf, addIf, checkNotBlank, requireNonBlank
-
Constructor Details
-
Builder
-
-
Method Details
-
autoSrcPath
- Parameters:
value
-true
if attempting to resolve the source path in case of a rename,false
otherwise- Returns:
this
-
build
-
path
- Parameters:
value
- limits diff to include only the specific path- Returns:
this
-
secondaryRepository
- Parameters:
value
- the secondary repository from which to generate the diff- Returns:
this
-
sinceId
Specifies the "since" commit for the diff. Generally this is an ancestor of the "until" commit, but it is not required to be.If the "since" and "until" commit are not directly related, the returned diff may not make sense. For example, it may show files as added, removed or modified that have not actually been changed. When an explicit "since" commit is provided, it is recommended to always use an ancestor of the "until" commit.
- Parameters:
value
- the "since" commit's ID, which will be trimmed tonull
if blank- Returns:
this
-
whitespace
- Parameters:
value
- the whitespace mode for showing diff- Returns:
this
-