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
- The path MUST contain a valid
.gitdirectory - The repo must be idle (unless
forceis true) - Lockfile enforcement MUST succeed before any deletion