Available on crate feature
vcs-git only.Expand description
The vcs-git backend: a gix-powered history walk.
build is the single entry point build_history_index delegates
to. It opens the repository, resolves the target ref, enumerates the
tracked text files at that ref, walks history once into a raw
CommitEvent log, then replays that
log into per-file Stats (the replay
module). Routing the walk through the same replay a cache hit uses is
what keeps the two bit-identical (issue #334); build_cached adds the
persistent-cache layer on top.
Per-function attribution (issue #329) is a separate, blame-based
path: see PerFunctionBlame.
Structs§
- Blame
Session - A
PerFunctionBlamebound to one thread, holding the state a blame would otherwise rebuild per file. - Line
Span - A function’s 1-based, inclusive line span at the target ref, as taken
from the AST
FuncSpace. A newtype rather than a bare(u32, u32)so the inclusive-range contract is explicit at every call site. - PerFunction
Blame - A blame engine bound to one repository, reusable across the per-file metrics walk.