Skip to content

Commit

Permalink
docs: replace jj files -> jj file list
Browse files Browse the repository at this point in the history
`jj files` is now deprecated
  • Loading branch information
ilyagr committed Jun 25, 2024
1 parent 5ba6078 commit 46b37ac
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions cli/src/cli_util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2391,8 +2391,8 @@ pub struct EarlyArgs {
pub color: Option<ColorChoice>,
/// 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)]
Expand Down
2 changes: 1 addition & 1 deletion cli/tests/[email protected]
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ To get started, see the tutorial at https://github.com/martinvonz/jj/blob/main/d
* `--color <WHEN>` — 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
Expand Down
2 changes: 1 addition & 1 deletion docs/filesets.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion docs/git-comparison.md
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ parent.
</tr>
<tr>
<td>Search among files versioned in the repository</td>
<td><code>grep foo $(jj files)</code>, or <code>rg --no-require-git foo</code></td>
<td><code>grep foo $(jj file list)</code>, or <code>rg --no-require-git foo</code></td>
<td><code>git grep foo</code></td>
</tr>
<tr>
Expand Down

0 comments on commit 46b37ac

Please sign in to comment.