pub fn head_commit(root: &Path) -> Option<String>
The commit HEAD names in the repository that holds root: None outside a repository and before the first commit.
HEAD
root
None