Class: Aws::CodeCommit::Types::DiffChange

Inherits:
Struct
  • Object
show all
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

Instance Attribute Details

#after_line_numberInteger

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

Returns:

  • (Integer)


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_numberInteger

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

Returns:

  • (Integer)


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

#contentString

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

Returns:

  • (String)


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

#typeString

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.

Returns:

  • (String)


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