java.lang.Object | |||
↳ | com.atlassian.bitbucket.util.BuilderSupport | ||
↳ | com.atlassian.bitbucket.content.AbstractDiffRequest.AbstractBuilder<B extends com.atlassian.bitbucket.content.AbstractDiffRequest.AbstractBuilder<B, R>, R> | ||
↳ | com.atlassian.bitbucket.content.DiffRequest.Builder |
[Expand]
Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Specifies the number of context lines to include around added/removed lines.
| |||||||||||
This method is deprecated.
in 4.12 to be removed in 5.0. The Comment API is going through a maintenance cycle.
For more details see the API Changelog
| |||||||||||
Specifies the "since" commit for the diff.
| |||||||||||
Whether to include comments associated to the diff in the response to the request
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() | |||||||||||
![]() |
Specifies the number of context lines to include around added/removed lines. 0
and positive values
are treated as the number of lines to request. Any negative value is treated as a request for the
system-configured default number of lines.
When requesting the default number of context lines, it is encouraged to use DEFAULT_CONTEXT_LINES
for clarity: contextLines(DiffRequest.DEFAULT_CONTEXT_LINES)
.
value | the number of context lines to include around added and removed lines in the diff, which may
be DEFAULT_CONTEXT_LINES to use the default number |
---|
this
This method is deprecated.
in 4.12 to be removed in 5.0. The Comment API is going through a maintenance cycle.
For more details see the API Changelog
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.
value | the "since" commit's ID, which will be trimmed to null if blank |
---|
this
Whether to include comments associated to the diff in the response to the request
value | true if the comments should be included. false otherwise. |
---|