pub fn head(dir: &Path) -> Result<Option<String>>Expand description
The commit a checkout is on, or None when it has none yet.
A repository with no commits — HEAD names a branch nothing is on — is a state, not a failure: there is simply no commit to ask CI about.