pub fn get_sha(repo: &Path, ref_name: &str) -> Result<String>
Resolve ref_name to its full SHA in repo.
ref_name
repo
Returns an error if git rev-parse fails (e.g. the ref does not exist).
git rev-parse