pub fn current_branch(repo: &Path) -> Option<String>
The branch a checkout is on, or None for a detached HEAD.
None