Gitility.Blame (Gitility v0.3.0)

Copy Markdown View Source

A blame result: consecutive hunks, not one record per line.

Hunk form is substantially more compact for agents — a 200-line file last touched by three commits is three hunks, not two hundred rows.

Blame accepts regular blobs only. Symlink and gitlink paths return :invalid_argument by design (R2); unlike canonical Git, Gitility does not attribute the bytes of a symlink target.

Summary

Types

t()

@type t() :: %Gitility.Blame{
  hunks: [Gitility.Blame.Hunk.t()],
  path: binary(),
  stats: Gitility.Stats.t(),
  warnings: [Gitility.Page.warning()]
}