Skip to main content

fold_run

Function fold_run 

Source
pub async fn fold_run(
    state: &mut RunState,
    drop_winner: bool,
    home: &Path,
) -> Result<Vec<String>>
Expand description

Tear a run’s worktrees and branches down.

home is where the updated run.json is saved (via RunState::save_under), never the process-global crate::run::home: a housekeeping pass already has its own honest home handed to it, and falling through to the global here would write back through whichever directory some other process or test pinned into that OnceLock first, not the one the caller actually resolved its runs and state from.