Skip to main content

head_sha

Function head_sha 

Source
pub fn head_sha(root: &Path) -> Result<String>
Expand description

The commit HEAD names, as a full hex SHA.

ยงErrors

Returns an error when root is not inside a git repository, or when HEAD names no commit, as in a repository with no commits.