Skip to main content

ensure_branch

Function ensure_branch 

Source
pub fn ensure_branch(repo: &Repository, name: &str) -> Result<()>
Expand description

Ensure branch exists, creating from HEAD if needed; switch to it