DiffChange - AWS CodeCommit
Services or capabilities described in AWS documentation might vary by Region. To see the differences applicable to the AWS European Sovereign Cloud Region, see the AWS European Sovereign Cloud User Guide.

DiffChange

A single line-level entry in a diff hunk. Each DiffChange describes one line and its change type: unchanged context, an addition in the after blob, or a deletion from the before blob.

Contents

afterLineNumber

The 1-based line number in the after blob. This field is omitted for DELETE lines.

Type: Integer

Required: No

beforeLineNumber

The 1-based line number in the before blob. This field is omitted for ADD lines.

Type: Integer

Required: No

content

The text content of the line, without the trailing newline.

Type: String

Required: No

type

The type of change for this line. Possible values:

  • CONTEXT – Unchanged line included for surrounding context.

  • ADD – Line added in the after blob.

  • DELETE – Line removed from the before blob.

Type: String

Valid Values: CONTEXT | ADD | DELETE

Required: No

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following: