Function irox_git_tools::get_head_for_repo
source · pub fn get_head_for_repo(repo: &Repository) -> Result<Commit<'_>, Error>
Expand description
Resolves HEAD
to a commit for the specified repo. Returns an error if HEAD
doesn’t exist, or HEAD
doesn’t
point to a commit in the provided repository