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
.mailmapto match git’s%aN/%aE. - Commit
Meta - Everything the logic needs to know about a commit, independent of git.
- Diff
Stat - Line and file changes for a single commit, equivalent to one commit’s
git log --numstatoutput. 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:
0stays0, otherwise it is shown as+n. - display_
del - Format a deletion count:
0stays0, 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).