pub fn resolve_ref(git_dir: &Path, refname: &str) -> Result<GitHash>
Resolve a ref name to its target hash.
Handles:
HEAD
refs/heads/<branch>