Skip to main content

current_ref

Function current_ref 

Source
pub fn current_ref(repo: &Path) -> Option<String>
Expand description

The branch checked out in repo, or the short commit when HEAD is detached; None outside a repository.