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§
Functions§
- git_
log_ commits - Returns the commits with the newest one first. Careful:
GitHistory::from_commitsexpects 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 runadd_history_from_dir_refon it, which then uses this function.