Skip to main content

get_sha

Function get_sha 

Source
pub fn get_sha(repo: &Path, ref_name: &str) -> Result<String>
Expand description

Resolve ref_name to its full SHA in repo.

ยงErrors

Returns an error if git rev-parse fails (e.g. the ref does not exist).