cli util gc: document the fact that evolution log limits gc

This is a followup to the discussion in
https://github.com/martinvonz/jj/pull/4953#discussion_r1855328098
This commit is contained in:
Ilya Grigoriev 2024-11-24 15:52:01 -08:00
parent e5de0fc742
commit 1f554e801f
2 changed files with 5 additions and 0 deletions

View file

@ -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

View file

@ -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:**