Gitility.Diff.Hunk (Gitility v0.3.0)

Copy Markdown View Source

One hunk of a patch-format diff.

header is reserved for future function/context-heading support and is always nil in 0.x.

Summary

Types

t()

A patch hunk; header is reserved and always nil in 0.x.

Types

t()

@type t() :: %Gitility.Diff.Hunk{
  header: nil,
  lines: [Gitility.Diff.Line.t()],
  new_lines: non_neg_integer(),
  new_start: non_neg_integer(),
  old_lines: non_neg_integer(),
  old_start: non_neg_integer()
}

A patch hunk; header is reserved and always nil in 0.x.