DiffHunk
A contiguous run of changed lines from a blob diff, together with any surrounding unchanged context lines. Hunks are returned in order from the start of the file to the end. Adjacent or overlapping hunks are merged into a single hunk in the response.
Contents
- afterLineCount
-
The number of lines from the after blob covered by this hunk, including any context lines.
Type: Integer
Required: No
- afterStartLine
-
The 1-based line number in the after blob where this hunk begins. When the hunk consists entirely of deletions,
afterLineCountis0.Type: Integer
Required: No
- beforeLineCount
-
The number of lines from the before blob covered by this hunk, including any context lines.
Type: Integer
Required: No
- beforeStartLine
-
The 1-based line number in the before blob where this hunk begins. When the hunk consists entirely of additions,
beforeLineCountis0.Type: Integer
Required: No
- changes
-
An ordered list of line-level changes that make up this hunk. Each entry indicates whether the line is unchanged context, an addition, or a deletion.
Type: Array of DiffChange objects
Array Members: Maximum number of 25000 items.
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following: