Skip to content

Commit

Permalink
cli util gc: document the fact that evolution log limits gc
Browse files Browse the repository at this point in the history
This is a followup to the discussion in
#4953 (comment)
  • Loading branch information
ilyagr committed Dec 2, 2024
1 parent e5de0fc commit 1f554e8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cli/src/commands/util/gc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ use crate::ui::Ui;
///
/// To garbage-collect old operations and the commits/objects referenced by
/// then, run `jj op abandon ..<some old operation>` before `jj util gc`.
///
/// Previous versions of a change that are reachable via the evolution log are
/// not garbage-collected.
#[derive(clap::Args, Clone, Debug)]
pub struct UtilGcArgs {
/// Time threshold
Expand Down
2 changes: 2 additions & 0 deletions cli/tests/[email protected]
Original file line number Diff line number Diff line change
Expand Up @@ -2270,6 +2270,8 @@ Run backend-dependent garbage collection.
To garbage-collect old operations and the commits/objects referenced by then, run `jj op abandon ..<some old operation>` before `jj util gc`.
Previous versions of a change that are reachable via the evolution log are not garbage-collected.
**Usage:** `jj util gc [OPTIONS]`
###### **Options:**
Expand Down

0 comments on commit 1f554e8

Please sign in to comment.