Skip to main content

checked_out_on_default

Function checked_out_on_default 

Source
fn checked_out_on_default(branch: &str, default: Option<&str>) -> bool
Expand description

Whether branch is the default a scan measures against, compared as plain names: default_branch may be a remote-tracking ref (origin/main), and a checked-out main is the default rather than a feature branch ahead of it.