Skip to main content

resolve_commit

Function resolve_commit 

Source
pub fn resolve_commit(
    git_dir: &Path,
    reference: &str,
) -> Result<String, GitError>
Expand description

Resolve reference (branch, tag, or full/abbrev SHA) to a full commit hex, using objects in git_dir and any alternates it points at.