Skip to main content

current_git_branch

Function current_git_branch 

Source
pub fn current_git_branch() -> Option<String>
Expand description

Get the current git branch name.

Returns None if not in a git repository or if git command fails.