Module git

Source
Expand description

Retrieve a history DAG from Git

For tracking performance changes across the history. Should perhaps be moved to the run-git crate.

Re-exports§

pub use crate::serde_types::git_hash::GitHash;

Structs§

EnrichedGitCommit
GitCommit
GitEntrypoint
GitGraph
GitGraphData
Id
MoreThanU32Commits
ToEnrichedCommit

Functions§

git_log_commits
Returns the commits with the newest one first. Careful: GitHistory::from_commits expects them in the reverse order of this one. This returns a Vec (for lifetime reasons but also) because it needs to be reversed afterwards, but also because following branched Git history (via git log) can find branch with known commits at some point, but the other still needing exploration. Would need to analyze the history on the go to know if stopping is OK. Thus for now, just get the whole history. Returns the empty vector if the given reference does not resolve! You usually do not want to use this function directly, but instead initialize a GitGraph, get the lock, then run add_history_from_dir_ref on it, which then uses this function.