Skip to main content

get_current

Function get_current 

Source
pub fn get_current() -> Result<String>
Expand description

Get current branch name (fails if HEAD detached).

ยงErrors

  • Repository discovery fails or HEAD is detached.