Class: Aws::CodeCommit::Types::DiffChange
- Inherits:
-
Struct
- Object
- Struct
- Aws::CodeCommit::Types::DiffChange
- Includes:
- Structure
- Defined in:
- lib/aws-sdk-codecommit/types.rb
Overview
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.
Constant Summary collapse
- SENSITIVE =
[]
Instance Attribute Summary collapse
-
#after_line_number ⇒ Integer
The 1-based line number in the after blob.
-
#before_line_number ⇒ Integer
The 1-based line number in the before blob.
-
#content ⇒ String
The text content of the line, without the trailing newline.
-
#type ⇒ String
The type of change for this line.
Instance Attribute Details
#after_line_number ⇒ Integer
The 1-based line number in the after blob. This field is omitted for
DELETE lines.
2258 2259 2260 2261 2262 2263 2264 2265 |
# File 'lib/aws-sdk-codecommit/types.rb', line 2258 class DiffChange < Struct.new( :type, :before_line_number, :after_line_number, :content) SENSITIVE = [] include Aws::Structure end |
#before_line_number ⇒ Integer
The 1-based line number in the before blob. This field is omitted
for ADD lines.
2258 2259 2260 2261 2262 2263 2264 2265 |
# File 'lib/aws-sdk-codecommit/types.rb', line 2258 class DiffChange < Struct.new( :type, :before_line_number, :after_line_number, :content) SENSITIVE = [] include Aws::Structure end |
#content ⇒ String
The text content of the line, without the trailing newline.
2258 2259 2260 2261 2262 2263 2264 2265 |
# File 'lib/aws-sdk-codecommit/types.rb', line 2258 class DiffChange < Struct.new( :type, :before_line_number, :after_line_number, :content) SENSITIVE = [] include Aws::Structure end |
#type ⇒ String
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.
2258 2259 2260 2261 2262 2263 2264 2265 |
# File 'lib/aws-sdk-codecommit/types.rb', line 2258 class DiffChange < Struct.new( :type, :before_line_number, :after_line_number, :content) SENSITIVE = [] include Aws::Structure end |