pub fn head_id(repo: &Repository, head_name: &str) -> Oid
Get the Oid of provided head reference name.
If the head id cannot be queried.