pub fn head_info(start: &Path) -> Option<HeadInfo>Expand description
Branch name and short commit hash for the repo containing start, or
None outside a git repo. On a branch, both fields are populated when the
ref resolves to a commit. Detached HEAD yields branch: None with the hash.