Skip to main content

evaluate

Function evaluate 

Source
pub fn evaluate(
    git: &dyn Git,
    dir: &Path,
    base: &ResolvedBase,
    solo: bool,
    allow_diverged: bool,
) -> RepoStatus
Expand description

Run all six checks for a single repo at dir. An unresolved base (base.name == None) forces both base-dependent checks to fail — the base couldn’t be determined, so we can’t certify the right branch is checked out (R5) nor that it’s current with base (R6). The two are independent: each reports its own verdict. solo selects the correct-branch rule (gkit.solo; see BranchRule); allow_diverged (gkit.allowDiverged) downgrades an R6 behind-base failure to a marked pass.