Skip to content

Commit

Permalink
docs: add git ls-files to command comparison table
Browse files Browse the repository at this point in the history
This came up in #4323.
  • Loading branch information
martinvonz committed Aug 23, 2024
1 parent f1be5c5 commit b05593f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions docs/git-comparison.md
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,11 @@ parent.
<td><code>jj log</code></td>
<td>(TODO)</td>
</tr>
<tr>
<td>List versioned files in the working copy</td>
<td><code>jj file list</code></td>
<td><code>git ls-files --cached</code></td>
</tr>
<tr>
<td>Search among files versioned in the repository</td>
<td><code>grep foo $(jj file list)</code>, or <code>rg --no-require-git foo</code></td>
Expand Down

0 comments on commit b05593f

Please sign in to comment.