Skip to main content

refusals

Function refusals 

Source
pub fn refusals(
    platform: &dyn Platform,
    candidate: &Candidate,
    owned: Owned,
    command_line_attributes: bool,
) -> Vec<Refusal>
Expand description

What: Every reason a worktree cannot be converted now, with its kind; empty means it can. Why: The dry run prints them all, and a real run refuses on the first call with the whole list. The registrations are read from the common directory itself, so a bare layout is checked like any other.

In TS you’d write (pseudocode):

function refusals(platform, candidate): Refusal[];