fn collect_refs(repo: &Repository) -> Result<(Vec<RefInfo>, Vec<RefInfo>)>
Collect tags and branches for the refs overview page.