pub struct CleanupOutcome {
pub dry_run: bool,
pub finalized: Vec<FinalizedInstance>,
pub orphan_workspaces: Vec<Utf8PathBuf>,
pub dead_state: Vec<Utf8PathBuf>,
pub purged_checkpoints: Vec<PurgedCheckpoints>,
pub pruned: Vec<PrunedRev>,
pub pinned_by_checkpoints: usize,
pub pinned_by_archived: usize,
pub warnings: Vec<String>,
}Expand description
What one cleanup pass did, or would do under --dry-run. Garbage
collection has to be reportable to be trustworthy: every list here is
something that disappeared (or would).
Fields§
§dry_run: bool§finalized: Vec<FinalizedInstance>Instances whose workspace was gone, so newgit finished the teardown.
orphan_workspaces: Vec<Utf8PathBuf>Workspace directories with no binding record at all.
dead_state: Vec<Utf8PathBuf>Dead PID files and state directories for instances that are gone.
purged_checkpoints: Vec<PurgedCheckpoints>Checkpoint logs discarded because their instance is archived and the caller asked for it. Empty unless purging was requested.
pruned: Vec<PrunedRev>§pinned_by_checkpoints: usizeLane revs kept alive solely because a checkpoint still points at them — the constraint pruning must never violate, surfaced so the retained disk is explained rather than mysterious.
pinned_by_archived: usizeHow many of those belong to instances that are already archived — the
ones --purge-archived can release.
warnings: Vec<String>Implementations§
Trait Implementations§
Source§impl Clone for CleanupOutcome
impl Clone for CleanupOutcome
Source§fn clone(&self) -> CleanupOutcome
fn clone(&self) -> CleanupOutcome
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more