pub fn get_current_commit_hash(repo: &Repository) -> Result<String>Expand description
Retrieves the commit hash of the current HEAD.
ยงErrors
- If the repository cannot be opened.
- If the HEAD reference cannot be resolved.
- If the HEAD reference does not point to a commit.