Skip to main content

current_branch

Function current_branch 

Source
pub fn current_branch(path: &Path) -> Result<String>
Expand description

ยงErrors

Returns an error if the path is not a git repository or if HEAD is detached.