Skip to main content

Module git

Module git 

Source
Expand description

Thin abstraction over invoking git, so the checks are unit-testable without a real repository. The real impl shells out to git -C <dir> …; tests use a FakeGit keyed by the command’s args.

Structs§

GitOutput
Captured result of a single git invocation.
SystemGit
Real implementation: shells out to the system git.

Traits§

Git
Anything that can run a git command in a directory.