DiffChange
¶
Source code in docs_src/capo_codecommit/types/diff_change.py
after_line_number
instance-attribute
¶
after_line_number: NotRequired[LineNumber]
The 1-based line number in the after blob. This field is omitted for DELETE lines.
before_line_number
instance-attribute
¶
before_line_number: NotRequired[LineNumber]
The 1-based line number in the before blob. This field is omitted for ADD lines.
content
instance-attribute
¶
content: NotRequired[LineContent]
The text content of the line, without the trailing newline.
type
instance-attribute
¶
type: NotRequired[DiffChangeType]
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.