async fn first_ref(root: &str, candidates: &[String]) -> Option<String>
The first of candidates that names a commit in root.
candidates
root