pub fn decide_switch(current: Option<&str>, configured: &str) -> SwitchPlanExpand description
Decide the branch action for a submodule. Only an un-detach (detached → configured) ever mutates; a named branch is kept (if it matches) or reported as diverged (if it doesn’t) — fixsub never moves a named branch.