pub fn classify_candidate(
candidate: &Path,
own_executable: &Path,
) -> CandidateKindExpand 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>;