diff --git a/cli/src/cli_util.rs b/cli/src/cli_util.rs index a72e89e9ff..d33142d5da 100644 --- a/cli/src/cli_util.rs +++ b/cli/src/cli_util.rs @@ -2391,8 +2391,8 @@ pub struct EarlyArgs { pub color: Option, /// Silence non-primary command output /// - /// For example, `jj files` will still list files, but it won't tell you if - /// the working copy was snapshotted or if descendants were rebased. + /// For example, `jj file list ` will still list files, but it won't tell + /// you if the working copy was snapshotted or if descendants were rebased. /// /// Warnings and errors will still be printed. #[arg(long, global = true, action = ArgAction::SetTrue)] diff --git a/cli/tests/cli-reference@.md.snap b/cli/tests/cli-reference@.md.snap index 431229e56a..97e608f968 100644 --- a/cli/tests/cli-reference@.md.snap +++ b/cli/tests/cli-reference@.md.snap @@ -177,7 +177,7 @@ To get started, see the tutorial at https://github.com/martinvonz/jj/blob/main/d * `--color ` — When to colorize output (always, never, debug, auto) * `--quiet` — Silence non-primary command output - For example, `jj files` will still list files, but it won't tell you if the working copy was snapshotted or if descendants were rebased. + For example, `jj file list ` will still list files, but it won't tell you if the working copy was snapshotted or if descendants were rebased. Warnings and errors will still be printed. * `--no-pager` — Disable the pager diff --git a/docs/filesets.md b/docs/filesets.md index 9735a87903..567aec0b1c 100644 --- a/docs/filesets.md +++ b/docs/filesets.md @@ -74,7 +74,7 @@ jj diff '~Cargo.lock' List files in `src` excluding Rust sources. ``` -jj files 'src ~ glob:"**/*.rs"' +jj file list 'src ~ glob:"**/*.rs"' ``` Split a revision in two, putting `foo` into the second commit. diff --git a/docs/git-comparison.md b/docs/git-comparison.md index dbda867610..03c17af100 100644 --- a/docs/git-comparison.md +++ b/docs/git-comparison.md @@ -196,7 +196,7 @@ parent. Search among files versioned in the repository - grep foo $(jj files), or rg --no-require-git foo + grep foo $(jj file list), or rg --no-require-git foo git grep foo