com.atlassian.bitbucket.content.DiffHunk |
Describes a single hunk, with one or more segments, in a diff.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Retrieves the context snippet for the hunk, which may be
empty() depending on the SCM's ability to
detect it. | |||||||||||
Retrieves the context snippet for the hunk, which may be empty()
depending on the SCM's ability to
detect it.
Context is chosen by the SCM, and is based on the SCM's understanding of the syntax of the file. Depending on the syntax used, the SCM may not be able to detect the context or it may detect "incorrect" context.
empty()
if the SCM could not detect anytrue
if one or more entire segments were omitted due to the size of the hunk, or
if any lines were omitted from an included segment; otherwise, false
if all of the segments
and lines in the hunk are included