Skip to main content

Module commit

Module commit 

Source
Expand description

The Layer 1 commit-history contract.

Severity inference needs exactly one thing from a version-control system: the list of commits reachable from HEAD down to some bound, scoped to a set of paths. That need is expressed here, in permissive Layer 1, as CommitWalker over CommitRecord values – so consumers such as callisto-conventional depend on the shape of a commit walk rather than on any particular VCS implementation (native gix, a shelled-out git, or a test double).

Structs§

CommitRecord
A single commit as far as history analysis is concerned: its identity plus its message, pre-split at the first blank line the way git log splits %s from %b.

Enums§

CommitWalkError
Why a CommitWalker::commits_since call could not produce a history.

Traits§

CommitWalker
Reads commit history. The single VCS capability that severity inference requires, and therefore the only one this trait exposes.