Skip to main content

classify_candidate

Function classify_candidate 

Source
pub fn classify_candidate(
    candidate: &Path,
    own_executable: &Path,
) -> CandidateKind
Expand description

What: Classify one candidate against this wrapper’s own executable. Why: This is the whole self-exclusion decision: the same file (any link or spelling), an identical copy, or a TypeScript-wrapper launcher is a wrapper; any other executable regular file is Git.

In TS you’d write (pseudocode):

async function classifyCandidate(candidate: string, ownExecutable: string): Promise<CandidateKind>;