Skip to main content

initial_commit_sha

Function initial_commit_sha 

Source
pub fn initial_commit_sha() -> Result<String>
Expand description

Get the initial commit SHA of the repository (project identifier).

ยงErrors

Returns an error if not inside a git repository or if the repository has no commits.