pub fn resolve_commit( git_dir: &Path, reference: &str, ) -> Result<String, GitError>
Resolve reference (branch, tag, or full/abbrev SHA) to a full commit hex, using objects in git_dir and any alternates it points at.
reference
git_dir