Skip to main content

default_branch

Function default_branch 

Source
pub fn default_branch(dir: &Path) -> Result<String>
Expand description

Detect the default branch via origin/HEAD, falling back to main then master.