pub fn refs_to_map(refs: Vec<GitRef>) -> HashMap<String, GitHash>
Convert references to a map for easier lookup