pub fn git_branch(dir: &str) -> Option<String>
Get the current git branch name, or None if not a git repo.