Skip to main content

Module model

Module model 

Source
Expand description

Value objects: plain data passed between the pure logic and the gix infrastructure. Nothing here performs I/O or depends on gix.

Structs§

Author
A commit author, resolved through .mailmap to match git’s %aN/%aE.
CommitMeta
Everything the logic needs to know about a commit, independent of git.
DiffStat
Line and file changes for a single commit, equivalent to one commit’s git log --numstat output. Merge commits carry the default (all zero), matching git’s default of emitting no numstat for merges.
Options
Parsed, validated options handed from the CLI down to the application layer.
Review
Aggregated per-reviewer statistics. Doubles as one row of the reviews table.
Stat
Aggregated per-author statistics. Doubles as one row of the stats table.
Trailer
A single git trailer such as Reviewed-by: Ada <ada@example.com>.

Enums§

SortBy
Which column the stats table is sorted by.

Functions§

display_add
Format an insertion count: 0 stays 0, otherwise it is shown as +n.
display_del
Format a deletion count: 0 stays 0, otherwise it is shown as -n.
display_net
Format a net line delta: positive values get a leading +, zero and negative values render with their natural sign (0, -5).