Skip to main content

current_branch

Function current_branch 

Source
pub fn current_branch(workspace: &str) -> Option<String>
Expand description

The branch currently checked out in workspace. None on detached HEAD or if workspace isn’t a git repo.