Skip to main content

prune_repo

Function prune_repo 

Source
pub fn prune_repo(
    repo_path: &Path,
    idle_days: u64,
    dry_run: bool,
    force: bool,
) -> Vec<PruneResult>
Expand description

Prune a single repository. Returns results for each bloat directory found.

ยงSafety Invariants

  1. The path MUST contain a valid .git directory
  2. The repo must be idle (unless force is true)
  3. Lockfile enforcement MUST succeed before any deletion