Skip to main content

git_branch

Function git_branch 

Source
pub fn git_branch(dir: &str) -> Option<String>
Expand description

Get the current git branch name, or None if not a git repo.