GitDiff v0.6.3 GitDiff.Line View Source

Every chunk contains multiple lines, which can be context, added, or removed lines.

Link to this section Summary

Types

t()

Defines the Line struct.

Functions

Defines the Line struct.

Link to this section Types

Link to this type

t()

View Source
t() :: %GitDiff.Line{
  from_line_number: String.t(),
  text: String.t(),
  to_line_number: String.t(),
  type: :context | :add | :remove
}

Defines the Line struct.

  • :from_line_number - The line number preimage.
  • :to_line_number - The line number postimages.
  • :text - The text of this line.
  • :type - The extracted type of line. One of :context, :add, or :remove.

Link to this section Functions

Link to this function

%GitDiff.Line{}

View Source (struct)

Defines the Line struct.

  • :from_line_number - The line number preimage.
  • :to_line_number - The line number postimages.
  • :text - The text of this line.
  • :type - The extracted type of line. One of :context, :add, or :remove.