Function commit_id_from_ref

Source
pub fn commit_id_from_ref(repo: &Repository, reference: &str) -> Oid
Expand description

Get the Commit Oid from a reference name.

ยงPanics

If the head id cannot be queried.