Skip to main content

rev_parse_head

Function rev_parse_head 

Source
pub fn rev_parse_head(workspace_root: &Path) -> Result<String, GitError>
Expand description

Run git rev-parse HEAD in workspace_root and return the resolved 40-char (or 64-char SHA-256) SHA.