forked from mirrors/jj
doc: suggest ripgrep as an equivalent of git grep
Sadly, ripgrep won't honor the .gitignore files in the absence of a .git directory, so we need to pass an annoying flag (for non-colocated repos). That seems worth adding despite the existing suggestion, because rg is faster, and for existing users for rg, it would teach them how to make rg work as expected.
This commit is contained in:
parent
ddcd502676
commit
8783a05551
1 changed files with 1 additions and 1 deletions
|
@ -190,7 +190,7 @@ parent.
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>Search among files versioned in the repository</td>
|
<td>Search among files versioned in the repository</td>
|
||||||
<td><code>grep foo $(jj files)</code></td>
|
<td><code>grep foo $(jj files)</code>, or <code>rg --no-require-git foo</code></td>
|
||||||
<td><code>git grep foo</code></td>
|
<td><code>git grep foo</code></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
|
|
Loading…
Reference in a new issue