summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Gallant <jamslam@gmail.com>2018-02-20 19:39:16 -0500
committerAndrew Gallant <jamslam@gmail.com>2018-02-20 20:05:55 -0500
commit8c800adab7ca441519e4bc503450123a80923c41 (patch)
tree5b7d0b9003ff5cc14ab73658589c60492f024701
parentd65966efbca5cfe2afdc6930e868d02e53591a43 (diff)
doc: clarify failure mode
This adds a hint for end users that run into a common failure mode where ripgrep won't search any files because they have a `*` rule in their `$HOME/.gitignore`. Fixes #815
-rw-r--r--GUIDE.md4
1 files changed, 4 insertions, 0 deletions
diff --git a/GUIDE.md b/GUIDE.md
index c1e58313..264d55a0 100644
--- a/GUIDE.md
+++ b/GUIDE.md
@@ -58,6 +58,10 @@ $ rg fast README.md
129: optimizations to make searching very fast.
```
+(**Note:** If you see an error message from ripgrep saying that it didn't
+search any files, then re-run ripgrep with the `--debug` flag. One likely cause
+of this is that you have a `*` rule in a `$HOME/.gitignore` file.)
+
So what happened here? ripgrep read the contents of `README.md`, and for each
line that contained `fast`, ripgrep printed it to your terminal. ripgrep also
included the line number for each line by default. If your terminal supports