Skip to main content

list_refs

Function list_refs 

Source
pub fn list_refs(git_dir: &Path) -> Vec<(String, GitHash)>
Expand description

Enumerate every ref in git_dir: the loose refs/** tree, packed-refs, and HEAD (when it resolves to a hash). Returns (refname, target_hash) pairs. Unresolvable or malformed refs are skipped; never panics.