Skip to main content

gc

Function gc 

Source
pub async fn gc<S: CommitStore + RefStore + ?Sized>(
    store: &S,
) -> Result<Vec<CommitId>>
Expand description

Removes every commit not reachable from any branch, returning the ids that were removed. A commit dropped from every branch (e.g. via rollback) but still hash-reachable from nowhere else becomes eligible here — until gc runs, it stays in storage.