Skip to main content

count_referenced_commit_tips

Function count_referenced_commit_tips 

Source
pub fn count_referenced_commit_tips(git_dir: &Path, odb: &Odb) -> Result<usize>
Expand description

Count unique commit OIDs that refs point to directly (peeling annotated tags), matching Git’s add_ref_to_set accounting for the “Collecting referenced commits” progress meter. Unlike collect_reachable_commit_oids, this does not walk commit parents.