pub fn commit_id_from_ref(repo: &Repository, reference: &str) -> Oid
Get the Commit Oid from a reference name.
If the head id cannot be queried.