Skip to main content

Crate cbh_git

Crate cbh_git 

Source
Expand description

Implementation crate for cargo-bench-history; do not depend on this directly.

The process and git-history ports. The process port launches the engine command (streaming its output) and captures the output of helper commands such as git and rustc; the git-history port gives analyze read-only access to a repository’s first-parent commit topology. Each has a real adapter backed by tokio::process and an in-memory fake (behind private-test-util) so orchestration is testable without spawning processes or a live repository. Split out of the cargo-bench-history shell so this subprocess-adjacent code is isolated for mutation testing.

Every item is re-exported flat from the crate root, so consumers write cbh_git::SystemGitHistory rather than reaching into a submodule.