fn collect_commits( repo: &Repository, tip: ObjectId, max: usize, ref_labels: &HashMap<String, Vec<RefBadge>>, ) -> Result<Vec<CommitInfo>>
Walk at most max commits reachable from tip, newest first.
max
tip