1
0
mirror of https://github.com/BurntSushi/ripgrep.git synced 2025-04-24 17:12:16 +02:00

doc: clarify that *files* override gitignores

This attempts to fix some mild confusion that came up as part of #1574.
Specifically:
https://github.com/BurntSushi/ripgrep/issues/1574#issuecomment-625780436
This commit is contained in:
Andrew Gallant 2020-05-08 08:21:05 -04:00
parent 9a858e4909
commit 17dcc2bf51
2 changed files with 5 additions and 4 deletions

View File

@ -693,8 +693,8 @@ fn arg_path(args: &mut Vec<RGArg>) {
const SHORT: &str = "A file or directory to search.";
const LONG: &str = long!(
"\
A file or directory to search. Directories are searched recursively. Paths \
specified on the command line override glob and ignore rules. \
A file or directory to search. Directories are searched recursively. File \
paths specified on the command line override glob and ignore rules. \
"
);
let arg = RGArg::positional("path", "PATH")

View File

@ -75,8 +75,9 @@ _PATTERN_::
dash, use the -e/--regexp option.
_PATH_::
A file or directory to search. Directories are searched recursively. Paths
specified explicitly on the command line override glob and ignore rules.
A file or directory to search. Directories are searched recursively. File
paths specified explicitly on the command line override glob and ignore
rules.
OPTIONS