Skip to main content

default_branch

Function default_branch 

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

The branch reviews are compared with: what origin/HEAD points at, else the first of origin/main, origin/master, main, master that exists.