Skip to main content

current_branch

Function current_branch 

Source
pub fn current_branch(repo: &Repository) -> Option<String>
Expand description

Get the current branch name (e.g., “main”, “shipd/3-fix-bug”).