GitDiff v0.5.0 GitDiff.Line View Source

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

Link to this section Summary

Functions

Defines the Line struct

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.