mirror of
https://github.com/BurntSushi/ripgrep.git
synced 2025-08-02 05:02:01 -07:00
Compare commits
7 Commits
ignore-0.4
...
grep-0.2.1
Author | SHA1 | Date | |
---|---|---|---|
|
e593f5b7ee | ||
|
6b19be2477 | ||
|
041544853c | ||
|
a7ae9e4043 | ||
|
595e7845b8 | ||
|
44fb9fce2c | ||
|
339c46a6ed |
2
Cargo.lock
generated
2
Cargo.lock
generated
@@ -152,7 +152,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "grep"
|
name = "grep"
|
||||||
version = "0.2.11"
|
version = "0.2.12"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"grep-cli",
|
"grep-cli",
|
||||||
"grep-matcher",
|
"grep-matcher",
|
||||||
|
@@ -430,6 +430,14 @@ $ cargo test --all
|
|||||||
from the repository root.
|
from the repository root.
|
||||||
|
|
||||||
|
|
||||||
|
### Related tools
|
||||||
|
|
||||||
|
* [delta](https://github.com/dandavison/delta) is a syntax highlighting
|
||||||
|
pager that supports the `rg --json` output format. So all you need to do to
|
||||||
|
make it work is `rg --json pattern | delta`. See [delta's manual section on
|
||||||
|
grep](https://dandavison.github.io/delta/grep.html) for more details.
|
||||||
|
|
||||||
|
|
||||||
### Vulnerability reporting
|
### Vulnerability reporting
|
||||||
|
|
||||||
For reporting a security vulnerability, please
|
For reporting a security vulnerability, please
|
||||||
|
@@ -2583,8 +2583,8 @@ Do not print anything to stdout. If a match is found in a file, then ripgrep
|
|||||||
will stop searching. This is useful when ripgrep is used only for its exit
|
will stop searching. This is useful when ripgrep is used only for its exit
|
||||||
code (which will be an error if no matches are found).
|
code (which will be an error if no matches are found).
|
||||||
|
|
||||||
When --files is used, then ripgrep will stop finding files after finding the
|
When --files is used, ripgrep will stop finding files after finding the
|
||||||
first file that matches all ignore rules.
|
first file that does not match any ignore rules.
|
||||||
"
|
"
|
||||||
);
|
);
|
||||||
let arg = RGArg::switch("quiet").short("q").help(SHORT).long_help(LONG);
|
let arg = RGArg::switch("quiet").short("q").help(SHORT).long_help(LONG);
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "grep"
|
name = "grep"
|
||||||
version = "0.2.11" #:version
|
version = "0.2.12" #:version
|
||||||
authors = ["Andrew Gallant <jamslam@gmail.com>"]
|
authors = ["Andrew Gallant <jamslam@gmail.com>"]
|
||||||
description = """
|
description = """
|
||||||
Fast line oriented regex searching as a library.
|
Fast line oriented regex searching as a library.
|
||||||
|
@@ -12,8 +12,6 @@ are sparse.
|
|||||||
A cookbook and a guide are planned.
|
A cookbook and a guide are planned.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#![deny(missing_docs)]
|
|
||||||
|
|
||||||
pub extern crate grep_cli as cli;
|
pub extern crate grep_cli as cli;
|
||||||
pub extern crate grep_matcher as matcher;
|
pub extern crate grep_matcher as matcher;
|
||||||
#[cfg(feature = "pcre2")]
|
#[cfg(feature = "pcre2")]
|
||||||
|
@@ -60,6 +60,7 @@ pub const DEFAULT_TYPES: &[(&str, &[&str])] = &[
|
|||||||
("dhall", &["*.dhall"]),
|
("dhall", &["*.dhall"]),
|
||||||
("diff", &["*.patch", "*.diff"]),
|
("diff", &["*.patch", "*.diff"]),
|
||||||
("docker", &["*Dockerfile*"]),
|
("docker", &["*Dockerfile*"]),
|
||||||
|
("dockercompose", &["docker-compose.yml", "docker-compose.*.yml"]),
|
||||||
("dts", &["*.dts", "*.dtsi"]),
|
("dts", &["*.dts", "*.dtsi"]),
|
||||||
("dvc", &["Dvcfile", "*.dvc"]),
|
("dvc", &["Dvcfile", "*.dvc"]),
|
||||||
("ebuild", &["*.ebuild"]),
|
("ebuild", &["*.ebuild"]),
|
||||||
@@ -160,6 +161,7 @@ pub const DEFAULT_TYPES: &[(&str, &[&str])] = &[
|
|||||||
("motoko", &["*.mo"]),
|
("motoko", &["*.mo"]),
|
||||||
("msbuild", &[
|
("msbuild", &[
|
||||||
"*.csproj", "*.fsproj", "*.vcxproj", "*.proj", "*.props", "*.targets",
|
"*.csproj", "*.fsproj", "*.vcxproj", "*.proj", "*.props", "*.targets",
|
||||||
|
"*.sln",
|
||||||
]),
|
]),
|
||||||
("nim", &["*.nim", "*.nimf", "*.nimble", "*.nims"]),
|
("nim", &["*.nim", "*.nimf", "*.nimble", "*.nims"]),
|
||||||
("nix", &["*.nix"]),
|
("nix", &["*.nix"]),
|
||||||
@@ -251,7 +253,11 @@ pub const DEFAULT_TYPES: &[(&str, &[&str])] = &[
|
|||||||
("tex", &["*.tex", "*.ltx", "*.cls", "*.sty", "*.bib", "*.dtx", "*.ins"]),
|
("tex", &["*.tex", "*.ltx", "*.cls", "*.sty", "*.bib", "*.dtx", "*.ins"]),
|
||||||
("texinfo", &["*.texi"]),
|
("texinfo", &["*.texi"]),
|
||||||
("textile", &["*.textile"]),
|
("textile", &["*.textile"]),
|
||||||
("tf", &["*.tf"]),
|
("tf", &[
|
||||||
|
"*.tf", "*.auto.tfvars", "terraform.tfvars", "*.tf.json",
|
||||||
|
"*.auto.tfvars.json", "terraform.tfvars.json", "*.terraformrc",
|
||||||
|
"terraform.rc", "*.tfrc", "*.terraform.lock.hcl",
|
||||||
|
]),
|
||||||
("thrift", &["*.thrift"]),
|
("thrift", &["*.thrift"]),
|
||||||
("toml", &["*.toml", "Cargo.lock"]),
|
("toml", &["*.toml", "Cargo.lock"]),
|
||||||
("ts", &["*.ts", "*.tsx", "*.cts", "*.mts"]),
|
("ts", &["*.ts", "*.tsx", "*.cts", "*.mts"]),
|
||||||
|
Reference in New Issue
Block a user