Gitility.Blame.Hunk (Gitility v0.3.0)

Copy Markdown View Source

One blame hunk: a consecutive run of final lines attributed to a single commit.

final_range is the 1-based inclusive line range in the blamed (final) file; original_range is the corresponding range in original_path as it existed in commit_oid. boundary marks hunks attributed to a boundary commit (the walk stopped at a root or local shallow boundary — attribution is "at least this old", not exact at a shallow boundary).

Summary

Types

line_range()

@type line_range() :: Range.t()

t()

@type t() :: %Gitility.Blame.Hunk{
  author: Gitility.Identity.t() | nil,
  boundary: boolean(),
  commit_oid: Gitility.OID.t(),
  committer: Gitility.Identity.t() | nil,
  final_range: line_range(),
  original_path: binary(),
  original_range: line_range(),
  summary: binary() | nil
}