pub fn prune_repo_selected(
repo_path: &Path,
idle_days: u64,
dry_run: bool,
force: bool,
only: Option<&[String]>,
) -> Vec<PruneResult>Expand description
Prune a repository, optionally restricted to a specific set of bloat directories.
only is a list of BloatDir::name values. When Some, any bloat directory whose
name is not in the list is left untouched and produces no result — this is what makes
the interactive selector’s per-directory choices meaningful. When None, every
detected bloat directory is pruned.
Same safety invariants as prune_repo.