Skip to main content

get_current_commit_hash

Function get_current_commit_hash 

Source
pub fn get_current_commit_hash(repo: &Repository) -> Result<String>
Expand description

Retrieves the commit hash of the current HEAD.

ยงErrors

  • HEAD resolution fails.