pub fn detect_local_default_branch(repo: &Path) -> Result<String>
Detect the current branch of a local (non-bare) repository.