pub fn git_info(dir: &Path) -> (Option<PathBuf>, Option<String>)
Find the git repository root and current branch for dir by reading .git/HEAD directly (no subprocess).
dir
.git/HEAD