commit_hash
stringlengths
40
40
author
stringlengths
1
57
date
timestamp[s]date
2010-07-26 04:45:09
2026-04-14 18:21:10
message
stringlengths
8
1.39M
diff
stringlengths
68
51.2k
files_changed
int64
1
136
insertions
int64
0
2.35k
deletions
int64
0
1.9k
9f7c2ebc09caec2282065974725f9cd2326b2355
Ed Page
2019-10-27T01:02:10
ignore: allow parallel walker to borrow data This makes it so the caller can more easily refactor from single-threaded to multi-threaded walking. If they want to support both, this makes it easier to do so with a single initialization code-path. In particular, it side-steps the need to put everything into an `Arc`. T...
diff --git a/Cargo.lock b/Cargo.lock index adaf3f7..3c6dacb 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -238,6 +238,7 @@ name = "ignore" version = "0.4.11" dependencies = [ "crossbeam-channel 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)", + "crossbeam-utils 0.7.0 (registry+https://github.com/rust-l...
3
79
64
804b43ecd8bd37fde4fc81f49d1f9bb659aeac1c
Manfred Endres
2019-12-16T19:18:00
globset: implement FromStr for Glob The `globset::Glob` type [`new`] function creates a new value with an `&str` parameter which returns an `Result<Glob, Error>` object. This is exactly what [`std::str::FromStr::from_str`][`std::str::FromStr`] defines. Libraries like [`clap`] use [`std::str::FromStr`] to create object...
diff --git a/globset/src/glob.rs b/globset/src/glob.rs index e327d99..c8dedba 100644 --- a/globset/src/glob.rs +++ b/globset/src/glob.rs @@ -103,6 +103,14 @@ impl fmt::Display for Glob { } } +impl str::FromStr for Glob { + type Err = Error; + + fn from_str(glob: &str) -> Result<Self, Self::Err> { + ...
1
8
0
2263b8ac9293073dbf7bf29691889ade53042650
Lucien Greathouse
2020-01-03T23:36:29
globset: add GlobMatcher::glob This exposes the underlying `Glob` used to compile the matcher. This can be useful for wrapping up the glob matcher in other types. Closes #1454
diff --git a/globset/src/glob.rs b/globset/src/glob.rs index eccfb2d..e327d99 100644 --- a/globset/src/glob.rs +++ b/globset/src/glob.rs @@ -122,6 +122,11 @@ impl GlobMatcher { pub fn is_match_candidate(&self, path: &Candidate) -> bool { self.re.is_match(&path.path) } + + /// Returns the `Glob` us...
1
5
0
1bdb767851d10acc9bf5b9306b7cc62cadbfe121
Mikko Vedru
2019-11-23T17:09:15
doc: improve docs for `--sort` and `--sortr` flags I improved the help documentation in the following manner and for the following reasons: 1. It's only logical to put the default sub-option on the first possible line, as well as to separately mention that it is indeed the default sub-option. 2. Additional options f...
diff --git a/src/app.rs b/src/app.rs index ae26f0c..4e0ccfc 100644 --- a/src/app.rs +++ b/src/app.rs @@ -2308,16 +2308,15 @@ fn flag_sort(args: &mut Vec<RGArg>) { This flag enables sorting of results in ascending order. The possible values for this flag are: - path Sort by file path. - modified Sort...
1
16
18
f8418c6a5271349d37f9e8217923c57b9613d4ab
Ximin Luo
2019-11-25T10:04:27
explicitly declare lazy_static dependency `benches/bench.rs` uses lazy_static but Cargo.toml does not declare a dependency on it. This causes rustc to use its own internal private copy instead. Sometimes this causes unintuitive errors like this Debian bug: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=942243 The ...
diff --git a/Cargo.lock b/Cargo.lock index 6ddbb10..f312eb1 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -132,6 +132,7 @@ dependencies = [ "bstr 0.2.10 (registry+https://github.com/rust-lang/crates.io-index)", "fnv 1.0.6 (registry+https://github.com/rust-lang/crates.io-index)", "glob 0.3.0 (registry+https://github...
2
2
0
88f46d12f1f3f7c2eac925ecb0b1c816ffddb943
Andrew Gallant
2020-02-15T14:12:21
tests: remove existing test directory I'm surprised this wasn't caught until now, but if a test directory already exists, then it was reused. This can result in hard to debug problems with tests when, e.g., file names are changed and a recursive search is executed.
diff --git a/tests/util.rs b/tests/util.rs index a015082..b529ca5 100644 --- a/tests/util.rs +++ b/tests/util.rs @@ -76,6 +76,9 @@ impl Dir { .join(TEST_DIR) .join(name) .join(&format!("{}", id)); + if dir.exists() { + nice_err(&dir, fs::remove_dir_all(&dir)); + ...
1
3
0
647b0d397794ca7e9835bbf37a00c12d1ea9700b
Jonathan Mast
2020-02-15T14:18:32
ignore/types: add HAML and ERB These are commonly used templating languages for Ruby, add their extensions to the filetypes list for convenient filtering. PR #1407
diff --git a/ignore/src/types.rs b/ignore/src/types.rs index 10086de..1f8f99b 100644 --- a/ignore/src/types.rs +++ b/ignore/src/types.rs @@ -139,6 +139,7 @@ const DEFAULT_TYPES: &'static [(&'static str, &'static [&'static str])] = &[ ("elisp", &["*.el"]), ("elixir", &["*.ex", "*.eex", "*.exs"]), ("elm", ...
1
2
0
e572fc1683402285c614ba1d37920a4463e6132f
Jeff S
2020-02-15T14:17:46
ignore/types: add slim, slime, and skim templates PR #1391
diff --git a/ignore/src/types.rs b/ignore/src/types.rs index 195e460..10086de 100644 --- a/ignore/src/types.rs +++ b/ignore/src/types.rs @@ -272,6 +272,7 @@ const DEFAULT_TYPES: &'static [(&'static str, &'static [&'static str])] = &[ // Extensions "*.bash", "*.csh", "*.ksh", "*.sh", "*.tcsh", "*.zsh",...
1
1
0
9cb93abd11906fe1d6f89de712465a7a3aa8c381
Andrew Gallant
2020-02-10T11:44:21
ignore: allow use of Error::description We can remove it in the next semver incompatible release.
diff --git a/ignore/src/lib.rs b/ignore/src/lib.rs index 61768ab..c78c5e0 100644 --- a/ignore/src/lib.rs +++ b/ignore/src/lib.rs @@ -69,8 +69,8 @@ pub use walk::{DirEntry, Walk, WalkBuilder, WalkParallel, WalkState}; mod dir; pub mod gitignore; -mod pathutil; pub mod overrides; +mod pathutil; pub mod types; mod ...
1
59
58
41695c66fa7d423f961e09741cc75a1b8488e081
Luca Kredel
2020-02-07T13:41:00
ignore/types: add typoscript file type Add the file types for TypoScript - the configuration language of the TYPO3 CMS. PR #1477
diff --git a/ignore/src/types.rs b/ignore/src/types.rs index 4eff914..195e460 100644 --- a/ignore/src/types.rs +++ b/ignore/src/types.rs @@ -297,6 +297,7 @@ const DEFAULT_TYPES: &'static [(&'static str, &'static [&'static str])] = &[ ("txt", &["*.txt"]), ("toml", &["*.toml", "Cargo.lock"]), ("twig", &["*...
1
1
0
74d1fe59e9b7eb0622c5faf0347399f16f8be268
Andrew Gallant
2020-01-30T23:33:40
deps: update everything
diff --git a/Cargo.lock b/Cargo.lock index 62a1431..6ddbb10 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -35,7 +35,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" [[package]] name = "bstr" -version = "0.2.9" +version = "0.2.10" source = "registry+https://github.com/rust-lang/crates.io-index" ...
1
22
22
9fd1e202e01b94fd92216e32315350bc9a14c7a1
Andrew Gallant
2020-01-30T23:32:56
deps: update regex, regex-syntax and aho-corasick Notably, this brings in a bug fix reported by @okdana: https://github.com/rust-lang/regex/issues/640
diff --git a/Cargo.lock b/Cargo.lock index 474fb5f..62a1431 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2,7 +2,7 @@ # It is not intended for manual editing. [[package]] name = "aho-corasick" -version = "0.7.6" +version = "0.7.7" source = "registry+https://github.com/rust-lang/crates.io-index" dependencies = [ "...
1
18
18
e76807b1b5d01474dcfa24cd2092deb40f636930
Robert Irelan
2020-01-29T18:59:34
ignore/types: add *.org_archive to org file type .org_archive is the default extension for Org archive files, created when entries from an Org-mode file are archived (see <https://orgmode.org/org.html#Moving-subtrees>). These files are still in Org mode format, so it's worth searching them at the same time as non-a...
diff --git a/ignore/src/types.rs b/ignore/src/types.rs index d6deb2b..4eff914 100644 --- a/ignore/src/types.rs +++ b/ignore/src/types.rs @@ -226,7 +226,7 @@ const DEFAULT_TYPES: &'static [(&'static str, &'static [&'static str])] = &[ ("objc", &["*.h", "*.m"]), ("objcpp", &["*.h", "*.mm"]), ("ocaml", &["*...
1
1
1
f8fb65f7e301e46d22db7d733acb9c9092c68075
Andrew Gallant
2020-01-27T21:45:12
globset: fix benchmarks There were apparently a lot of unused things, including lazy_static.
diff --git a/globset/benches/bench.rs b/globset/benches/bench.rs index e142ed7..088b48d 100644 --- a/globset/benches/bench.rs +++ b/globset/benches/bench.rs @@ -6,14 +6,9 @@ tool itself, see the benchsuite directory. extern crate glob; extern crate globset; -#[macro_use] -extern crate lazy_static; extern crate reg...
1
0
5
98de8d248a677bbdb5ab46f53a58ceabbc24a2df
Tristan Waddington
2020-01-23T11:51:11
ignore/types: make 'gradle' it's own type This change maintains the existing behavior of the 'groovy' type, which includes both .groovy and .gradle files. PR #1470
diff --git a/ignore/src/types.rs b/ignore/src/types.rs index 42bc631..d6deb2b 100644 --- a/ignore/src/types.rs +++ b/ignore/src/types.rs @@ -152,6 +152,7 @@ const DEFAULT_TYPES: &'static [(&'static str, &'static [&'static str])] = &[ ("go", &["*.go"]), ("gzip", &["*.gz", "*.tgz"]), ("groovy", &["*.groovy...
1
1
0
46b07bb2ee0de2781a30e7e92a9491d58743bb89
Jan Verbeek
2020-01-20T12:48:57
ignore/types: fix postscript globs The postscript globs were missing asterisks, so they were treated as literal filenames. PR #1461
diff --git a/ignore/src/types.rs b/ignore/src/types.rs index 1ff3128..42bc631 100644 --- a/ignore/src/types.rs +++ b/ignore/src/types.rs @@ -231,7 +231,7 @@ const DEFAULT_TYPES: &'static [(&'static str, &'static [&'static str])] = &[ ("pdf", &["*.pdf"]), ("php", &["*.php", "*.php3", "*.php4", "*.php5", "*.pht...
1
1
1
8bdf84e3a82e42984cb09e5aeeffb932cb7e08ff
Andrew Gallant
2020-01-17T00:47:23
deps: update everything
diff --git a/Cargo.lock b/Cargo.lock index d6b25d1..474fb5f 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -147,7 +147,7 @@ dependencies = [ "grep-regex 0.1.5", "grep-searcher 0.1.6", "termcolor 1.1.0 (registry+https://github.com/rust-lang/crates.io-index)", - "walkdir 2.2.9 (registry+https://github.com/rust-lang/cr...
1
12
12
5a6e17fcc133f70f922a123483d0d5a158c041b0
Andrew Gallant
2020-01-11T15:09:10
deps: various updates Most of these updates (sans thread_local) are from crates I maintain that have seen updates recently. Notably, this includes a bump to `termcolor 1.1.0` which includes support for respecting `NO_COLOR`. This commit therefore means that ripgrep now supports `NO_COLOR`. As an added bonus, we drop...
diff --git a/Cargo.lock b/Cargo.lock index 87e4446..d6b25d1 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -5,7 +5,7 @@ name = "aho-corasick" version = "0.7.6" source = "registry+https://github.com/rust-lang/crates.io-index" dependencies = [ - "memchr 2.2.1 (registry+https://github.com/rust-lang/crates.io-index)", + "m...
1
33
43
00bfcd14a6a40b79777d5d3ec29a532669e1a1b7
Andrew Gallant
2020-01-10T20:08:27
ignore-0.4.11
diff --git a/Cargo.lock b/Cargo.lock index df4b715..87e4446 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -233,7 +233,7 @@ dependencies = [ [[package]] name = "ignore" -version = "0.4.10" +version = "0.4.11" dependencies = [ "crossbeam-channel 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)", "glob...
2
3
3
837fb5e21f0d0c755fbade11870472d2cc917cff
Andrew Gallant
2020-01-10T02:10:14
deps: update to crossbeam-channel 0.4 Closes #1427
diff --git a/Cargo.lock b/Cargo.lock index 331860c..df4b715 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -18,6 +18,11 @@ dependencies = [ "winapi 0.3.8 (registry+https://github.com/rust-lang/crates.io-index)", ] +[[package]] +name = "autocfg" +version = "0.1.7" +source = "registry+https://github.com/rust-lang/crate...
2
14
7
2e1815606edc18d2342eaf8f5b54389d07b56f9e
Andrew Gallant
2020-01-10T02:02:13
deps: update to bytecount 0.6 Looks like there aren't any major changes other than dependency updates.
diff --git a/Cargo.lock b/Cargo.lock index dc98885..331860c 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -40,7 +40,7 @@ dependencies = [ [[package]] name = "bytecount" -version = "0.5.1" +version = "0.6.0" source = "registry+https://github.com/rust-lang/crates.io-index" [[package]] @@ -207,7 +207,7 @@ name = "gr...
2
4
4
cb2f6ddc61b79b7acf59bb00a6be9f1740aa55b8
Andrew Gallant
2020-01-10T01:58:28
deps: update to thread_local 1.0 We also update the pcre2 and regex dependencies, which removes any other lingering uses of thread_local 0.3.
diff --git a/Cargo.lock b/Cargo.lock index c6fa600..dc98885 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -127,7 +127,7 @@ dependencies = [ "fnv 1.0.6 (registry+https://github.com/rust-lang/crates.io-index)", "glob 0.3.0 (registry+https://github.com/rust-lang/crates.io-index)", "log 0.4.8 (registry+https://github.c...
6
23
23
bd7a42602f090efaea228c79fce045642b1414a4
Andrew Gallant
2020-01-10T01:47:22
deps: bump to base64 0.11
diff --git a/Cargo.lock b/Cargo.lock index 7c3afcd..c6fa600 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -20,11 +20,8 @@ dependencies = [ [[package]] name = "base64" -version = "0.10.1" +version = "0.11.0" source = "registry+https://github.com/rust-lang/crates.io-index" -dependencies = [ - "byteorder 1.3.2 (registr...
2
4
7
528ce56e1b5884d01fafb47bf49e42133bc8a54b
Andrew Gallant
2020-01-10T01:38:00
deps: run cargo update The only new dependency is an unused target specific dependency hermit via the atty crate.
diff --git a/Cargo.lock b/Cargo.lock index d4d5759..7c3afcd 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -10,10 +10,11 @@ dependencies = [ [[package]] name = "atty" -version = "0.2.13" +version = "0.2.14" source = "registry+https://github.com/rust-lang/crates.io-index" dependencies = [ - "libc 0.2.62 (registry+htt...
1
97
86
e14f9195e57409c5d3c24b6febb8f8fc8149ef14
Andrew Gallant
2019-08-29T00:18:47
deps: update everything
diff --git a/Cargo.lock b/Cargo.lock index b17d421..d4d5759 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -13,8 +13,8 @@ name = "atty" version = "0.2.13" source = "registry+https://github.com/rust-lang/crates.io-index" dependencies = [ - "libc 0.2.60 (registry+https://github.com/rust-lang/crates.io-index)", - "winapi ...
1
60
60
ef0e7af56a9b1afce7be46db87b3ff3709187ee2
Andrew Gallant
2019-08-11T14:40:10
deps: update bstr to 0.2.7 The new bstr release contains a small performance bug fix where some trivial methods weren't being inlined.
diff --git a/Cargo.lock b/Cargo.lock index 05f7b3a..b17d421 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -32,7 +32,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" [[package]] name = "bstr" -version = "0.2.6" +version = "0.2.7" source = "registry+https://github.com/rust-lang/crates.io-index" d...
1
7
7
b266818aa52a71d81279eb8eee76fc0873ddc119
Todd Walton
2019-08-09T17:37:37
doc: use XDG_CONFIG_HOME in comments XDG_CONFIG_DIR does not actually exist. PR #1347
diff --git a/ignore/src/gitignore.rs b/ignore/src/gitignore.rs index b8db42b..01bcda3 100644 --- a/ignore/src/gitignore.rs +++ b/ignore/src/gitignore.rs @@ -537,7 +537,7 @@ impl GitignoreBuilder { /// /// Note that the file path returned may not exist. fn gitconfig_excludes_path() -> Option<PathBuf> { - // git su...
1
2
2
5c4584aa7c797a8c5f2ebebb4c47e7e58cae773b
Andrew Gallant
2019-08-06T13:51:13
grep-regex-0.1.5
diff --git a/Cargo.lock b/Cargo.lock index bc9d278..05f7b3a 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -140,7 +140,7 @@ dependencies = [ "grep-matcher 0.1.3", "grep-pcre2 0.1.3", "grep-printer 0.1.3", - "grep-regex 0.1.4", + "grep-regex 0.1.5", "grep-searcher 0.1.6", "termcolor 1.0.5 (registry+https://github...
2
5
5
0972c6e7c7434aeef16c06aec059c327aca3dc37
Andrew Gallant
2019-08-06T13:50:52
grep-searcher-0.1.6
diff --git a/Cargo.lock b/Cargo.lock index 7123151..bc9d278 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -141,7 +141,7 @@ dependencies = [ "grep-pcre2 0.1.3", "grep-printer 0.1.3", "grep-regex 0.1.4", - "grep-searcher 0.1.5", + "grep-searcher 0.1.6", "termcolor 1.0.5 (registry+https://github.com/rust-lang/crates...
2
4
4
0a372bf2e47b13654e56dad3b74352ce28390dc9
Andrew Gallant
2019-08-06T13:50:35
deps: update ignore
diff --git a/Cargo.lock b/Cargo.lock index 0572086..7123151 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -221,7 +221,7 @@ dependencies = [ [[package]] name = "ignore" -version = "0.4.9" +version = "0.4.10" dependencies = [ "crossbeam-channel 0.3.9 (registry+https://github.com/rust-lang/crates.io-index)", "globs...
1
2
2
345124a7fa030cfa922fd9dc4675cdff769cd7a3
Andrew Gallant
2019-08-06T13:47:45
ignore-0.4.10
diff --git a/ignore/Cargo.toml b/ignore/Cargo.toml index 7cf6441..6a81e21 100644 --- a/ignore/Cargo.toml +++ b/ignore/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "ignore" -version = "0.4.9" #:version +version = "0.4.10" #:version authors = ["Andrew Gallant <jamslam@gmail.com>"] description = """ A fast library f...
1
1
1
31807f805a793c254587105ca8ee0d41dfe3004b
Andrew Gallant
2019-08-06T13:46:05
deps: drop tempfile We were only using it to create temporary directories for `ignore` tests, but it pulls in a bunch of dependencies and we don't really need randomness. So just use our own simple wrapper instead.
diff --git a/Cargo.lock b/Cargo.lock index 9403aa3..0572086 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -50,15 +50,6 @@ name = "byteorder" version = "1.3.2" source = "registry+https://github.com/rust-lang/crates.io-index" -[[package]] -name = "c2-chacha" -version = "0.2.2" -source = "registry+https://github.com/rus...
5
67
108
4de227fd9a1bbc0396c1f1e6d5209a1171fad88a
Andrew Gallant
2019-08-05T17:50:55
deps: update everything Mostly this just updates regex and its assorted dependencies. This does drop utf8-ranges and ucd-util, in accordance with changes to regex-syntax and regex.
diff --git a/Cargo.lock b/Cargo.lock index 42bb1f6..9403aa3 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2,7 +2,7 @@ # It is not intended for manual editing. [[package]] name = "aho-corasick" -version = "0.7.4" +version = "0.7.6" source = "registry+https://github.com/rust-lang/crates.io-index" dependencies = [ "...
4
23
42
813c676ecac053559a3b1b72034e0c34c8ed7e06
Andrew Gallant
2019-08-02T11:23:27
searcher: fix roll buffer bug This commit fixes a subtle bug in how the line buffer was rolling its contents. Specifically, when ripgrep searches without memory maps, it uses a "roll" buffer for incremental line oriented search without needing to read the entire file into memory at once. The roll buffer works by readi...
diff --git a/grep-searcher/src/line_buffer.rs b/grep-searcher/src/line_buffer.rs index 4b75fa3..96be997 100644 --- a/grep-searcher/src/line_buffer.rs +++ b/grep-searcher/src/line_buffer.rs @@ -482,7 +482,7 @@ impl LineBuffer { } let roll_len = self.end - self.pos; - self.buf.copy_within_str(s...
1
1
1
709ca91f503e4cef777352f2abafaa421d02668b
Andrew Gallant
2019-08-01T21:48:37
ignore: release 0.4.9
diff --git a/Cargo.lock b/Cargo.lock index 89a8fe4..93423b5 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -240,7 +240,7 @@ dependencies = [ [[package]] name = "ignore" -version = "0.4.8" +version = "0.4.9" dependencies = [ "crossbeam-channel 0.3.9 (registry+https://github.com/rust-lang/crates.io-index)", "globse...
2
3
3
9c220f9a9beae685f3d5d9850edd90b058f1c502
Andrew Gallant
2019-08-01T21:47:45
grep-regex: release 0.1.4
diff --git a/Cargo.lock b/Cargo.lock index efb1466..89a8fe4 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -158,7 +158,7 @@ dependencies = [ "grep-matcher 0.1.3", "grep-pcre2 0.1.3", "grep-printer 0.1.3", - "grep-regex 0.1.3", + "grep-regex 0.1.4", "grep-searcher 0.1.5", "termcolor 1.0.5 (registry+https://github...
2
5
5
9085bed139baa5aa7bb5fb380982d3d845cb4078
Andrew Gallant
2019-08-01T21:46:59
grep-matcher: release 0.1.3
diff --git a/Cargo.lock b/Cargo.lock index 2c01ef8..efb1466 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -155,7 +155,7 @@ name = "grep" version = "0.2.4" dependencies = [ "grep-cli 0.1.3", - "grep-matcher 0.1.2", + "grep-matcher 0.1.3", "grep-pcre2 0.1.3", "grep-printer 0.1.3", "grep-regex 0.1.3", @@ -181,7 +1...
2
7
7
b5e5979ff1c94a3b4afab66660ce33fe08fac2a3
Andrew Gallant
2019-08-01T21:41:43
deps: update everything This drops `spin` and `autocfg`, yay.
diff --git a/Cargo.lock b/Cargo.lock index b123b9b..2c01ef8 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -17,11 +17,6 @@ dependencies = [ "winapi 0.3.7 (registry+https://github.com/rust-lang/crates.io-index)", ] -[[package]] -name = "autocfg" -version = "0.1.5" -source = "registry+https://github.com/rust-lang/crate...
1
29
45
01e8e1162177b4402893d4b60972d1031149e650
Andrew Gallant
2019-08-01T21:31:49
doc: improve PCRE2 failure mode documentation If a user tries to search for an explicit `\n` character in a PCRE2 regex, ripgrep won't report an error and instead will (likely) silently fail to match. Fixes #1261
diff --git a/src/app.rs b/src/app.rs index d69d5cd..0733c80 100644 --- a/src/app.rs +++ b/src/app.rs @@ -1995,7 +1995,12 @@ or backreferences. Note that PCRE2 is an optional ripgrep feature. If PCRE2 wasn't included in your build of ripgrep, then using this flag will result in ripgrep printing -an error message and...
1
6
1
9268ff8e8db179a484810cfbc40f3a8dba74ccaf
Ninan John
2019-06-05T15:33:52
ripgrep: fix bug when CWD has directory named `-` Specifically, when searching stdin, if the current directory has a directory named `-`, then the `--with-filename` flag would automatically be turned on. This is because `--with-filename` is automatically enabled when ripgrep is given a single path that is a directory....
diff --git a/src/args.rs b/src/args.rs index 09f924d..6352688 100644 --- a/src/args.rs +++ b/src/args.rs @@ -1594,10 +1594,11 @@ impl ArgMatches { if self.is_present("no-filename") { false } else { + let path_stdin = Path::new("-"); self.is_present("with-filename")...
2
14
1
adb9332f52b884c8b872d1c969a7841188fe3089
Andrew Gallant
2019-08-01T20:58:12
regex: fix -F aho-corasick optimization It turns out that when the -F flag was used, if any of the patterns contained a regex meta character (such as `.`), then we winded up escaping the pattern first before handing it off to Aho-Corasick, which treats all patterns literally. We continue to apply band-aides here and ...
diff --git a/grep-regex/src/matcher.rs b/grep-regex/src/matcher.rs index 7f30252..61af051 100644 --- a/grep-regex/src/matcher.rs +++ b/grep-regex/src/matcher.rs @@ -71,10 +71,31 @@ impl RegexMatcherBuilder { &self, literals: &[B], ) -> Result<RegexMatcher, Error> { - let slices: Vec<_> = l...
2
33
2
bc37c32717301abf26e5aecc942688d2ddd63692
Matthew Davidson
2019-07-29T20:43:28
ignore/types: add edn type from Clojure ecosystem PR #1330
diff --git a/ignore/src/types.rs b/ignore/src/types.rs index 784adc2..07d68e1 100644 --- a/ignore/src/types.rs +++ b/ignore/src/types.rs @@ -135,6 +135,7 @@ const DEFAULT_TYPES: &'static [(&'static str, &'static [&'static str])] = &[ ("d", &["*.d"]), ("dhall", &["*.dhall"]), ("docker", &["*Dockerfile*"])...
1
1
0
08ae4da2b79cc4e59a43e98f61ce4fd6e0adc81d
Andrew Gallant
2019-07-25T11:52:33
deps: update them There are some nice removals. It looks like rand has slimmed down, and smallvec is gone now as well.
diff --git a/Cargo.lock b/Cargo.lock index 9310c1e..b123b9b 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2,25 +2,24 @@ # It is not intended for manual editing. [[package]] name = "aho-corasick" -version = "0.7.3" +version = "0.7.4" source = "registry+https://github.com/rust-lang/crates.io-index" dependencies = [ -...
1
160
248
7ac95c1f5077dbc272d5196a04403e30b5dacaa0
Andrew Gallant
2019-07-24T16:56:47
deps: bump ignore
diff --git a/Cargo.lock b/Cargo.lock index cc1b82b..9310c1e 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -242,7 +242,7 @@ dependencies = [ [[package]] name = "ignore" -version = "0.4.7" +version = "0.4.8" dependencies = [ "crossbeam-channel 0.3.8 (registry+https://github.com/rust-lang/crates.io-index)", "globse...
1
2
2
7a6903bd4ebaba372e55346f045ccb6da18452f0
Andrew Gallant
2019-07-24T16:56:01
ignore-0.4.8
diff --git a/ignore/Cargo.toml b/ignore/Cargo.toml index c5a31b4..ef7d6b3 100644 --- a/ignore/Cargo.toml +++ b/ignore/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "ignore" -version = "0.4.7" #:version +version = "0.4.8" #:version authors = ["Andrew Gallant <jamslam@gmail.com>"] description = """ A fast library fo...
1
1
1
9801fae29f5a6d1c72a73e5f343f50130b09f646
Tiziano Santoro
2019-07-24T16:55:37
ignore: support compilation on wasm Currently the crate assumes that exactly one of `cfg(windows)` or `cfg(unix)` is true, but this is not actually the case, for instance when compiling for `wasm32`. Implement the missing functions so that the crate can compile on other platforms, even though those functions wil...
diff --git a/ignore/src/walk.rs b/ignore/src/walk.rs index 57f795c..df796d4 100644 --- a/ignore/src/walk.rs +++ b/ignore/src/walk.rs @@ -379,7 +379,18 @@ impl DirEntryRaw { }) } - #[cfg(not(unix))] + // Placeholder implementation to allow compiling on non-standard platforms (e.g. wasm32). + #[c...
1
23
1
b83e7968efbc8d2453924e61447fcab68a09af4d
Conrad Olega
2019-07-14T12:12:34
ignore/types: add Robot Framework PR #1322
diff --git a/ignore/src/types.rs b/ignore/src/types.rs index 6c9ef1f..784adc2 100644 --- a/ignore/src/types.rs +++ b/ignore/src/types.rs @@ -241,6 +241,7 @@ const DEFAULT_TYPES: &'static [(&'static str, &'static [&'static str])] = &[ ("readme", &["README*", "*README"]), ("r", &["*.R", "*.r", "*.Rmd", "*.Rnw"]...
1
1
0
8ebc113847926922bb85fb5a01c175319fb1e8d4
Hugo Locurcio
2019-07-04T15:42:35
doc: improve docs for --replace flag Specifically, we document shell-specific caveats related to the `--replace` flag. PR #1318
diff --git a/src/app.rs b/src/app.rs index 92f908e..fa32281 100644 --- a/src/app.rs +++ b/src/app.rs @@ -2171,7 +2171,10 @@ Replace every match with the text given when printing results. Neither this flag nor any other ripgrep flag will modify your files. Capture group indices (e.g., $5) and names (e.g., $foo) are ...
1
4
1
785c1f176635fe617f012ed50369388359e26078
Andrew Gallant
2019-06-26T20:53:30
release: globset, grep-cli, grep-printer, grep-searcher
diff --git a/Cargo.lock b/Cargo.lock index c0be9ec..cc1b82b 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -142,7 +142,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" [[package]] name = "globset" -version = "0.4.3" +version = "0.4.4" dependencies = [ "aho-corasick 0.7.3 (registry+https://githu...
5
14
14
8b734cb490bcac1534b9eeee8b54d9696968e810
Andrew Gallant
2019-06-26T20:51:06
deps: update everything
diff --git a/Cargo.lock b/Cargo.lock index 9d3b761..c0be9ec 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -206,8 +206,8 @@ dependencies = [ "grep-matcher 0.1.2", "grep-regex 0.1.3", "grep-searcher 0.1.4", - "serde 1.0.92 (registry+https://github.com/rust-lang/crates.io-index)", - "serde_derive 1.0.92 (registry+http...
1
12
12
b93762ea7a397b54e9ccf589a45a2c6ad91bc390
Andrew Gallant
2019-06-26T20:47:33
bstr: update everything to bstr 0.2
diff --git a/Cargo.lock b/Cargo.lock index 63e5d61..9d3b761 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -38,7 +38,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" [[package]] name = "bstr" -version = "0.1.4" +version = "0.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" d...
20
72
72
34677d262246462ce3027ee57be1869a9dc7730a
Andrew Gallant
2019-06-19T00:23:47
search: a few small touchups
diff --git a/src/search.rs b/src/search.rs index c866b4b..8597e80 100644 --- a/src/search.rs +++ b/src/search.rs @@ -315,7 +315,24 @@ pub struct SearchWorker<W> { impl<W: WriteColor> SearchWorker<W> { /// Execute a search over the given subject. pub fn search(&mut self, subject: &Subject) -> io::Result<Searc...
1
20
27
50bcb7409efc30b6878edc2b0c2a3d438ce2f619
Andrew Gallant
2019-06-16T22:38:45
deps: update everything
diff --git a/Cargo.lock b/Cargo.lock index 49dbc72..63e5d61 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -13,14 +13,14 @@ name = "atty" version = "0.2.11" source = "registry+https://github.com/rust-lang/crates.io-index" dependencies = [ - "libc 0.2.51 (registry+https://github.com/rust-lang/crates.io-index)", - "termi...
1
135
128
7b9972c30876797103d6b51c14dd8f9bf1001c92
Andrew Gallant
2019-06-16T22:37:51
style: fix deprecations Use `dyn` for trait objects and use `..=` for inclusive ranges.
diff --git a/grep-cli/src/escape.rs b/grep-cli/src/escape.rs index 7ea9678..6b4d2d3 100644 --- a/grep-cli/src/escape.rs +++ b/grep-cli/src/escape.rs @@ -111,7 +111,7 @@ pub fn unescape(s: &str) -> Vec<u8> { } HexFirst => { match c { - '0'...'9' | 'A'...'F' |...
6
16
14
9f000c29109cf369c4c28254f0cf9b9216a1950d
Hitesh Jasani
2019-06-12T18:02:28
ignore/types: add more nim types PR #1297
diff --git a/ignore/src/types.rs b/ignore/src/types.rs index 3d2427f..6c9ef1f 100644 --- a/ignore/src/types.rs +++ b/ignore/src/types.rs @@ -219,7 +219,7 @@ const DEFAULT_TYPES: &'static [(&'static str, &'static [&'static str])] = &[ ("msbuild", &[ "*.csproj", "*.fsproj", "*.vcxproj", "*.proj", "*.props",...
1
1
1
7d3f79458891d2cb9ce2b3d51f8d8f788d36c9e8
Andrew Gallant
2019-05-29T22:06:11
ignore: remove .git check in some cases When we know we aren't going to process gitignores, we shouldn't waste the syscall in every directory to check for a git repo.
diff --git a/ignore/src/dir.rs b/ignore/src/dir.rs index be2b835..479e0c2 100644 --- a/ignore/src/dir.rs +++ b/ignore/src/dir.rs @@ -197,7 +197,12 @@ impl Ignore { errs.maybe_push(err); igtmp.is_absolute_parent = true; igtmp.absolute_base = Some(absolute_base.clone()); - ...
1
13
2
9dcfd9a205914af1398d0c655956b2045f51b125
Andrew Gallant
2019-04-25T14:40:28
deps: bump pcre2-sys to 0.2.1 This brings in a bug fix that no longer tries to run `git` to update the submodule if the `git` command doesn't exist. This is useful is more restricted build contexts where `git` isn't installed. Such as in the docker image used for running `cross`.
diff --git a/Cargo.lock b/Cargo.lock index 5935b6c..49dbc72 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -336,13 +336,13 @@ source = "registry+https://github.com/rust-lang/crates.io-index" dependencies = [ "libc 0.2.51 (registry+https://github.com/rust-lang/crates.io-index)", "log 0.4.6 (registry+https://github.com...
1
3
3
36b276c6d0e6e8e84a7d74cfda7933ba714e88a0
Andrew Gallant
2019-04-24T21:22:27
printer: remove unnecessary mut
diff --git a/grep-printer/src/standard.rs b/grep-printer/src/standard.rs index b568c31..92fae5c 100644 --- a/grep-printer/src/standard.rs +++ b/grep-printer/src/standard.rs @@ -1029,7 +1029,7 @@ impl<'a, M: Matcher, W: WriteColor> StandardImpl<'a, M, W> { let mut count = 0; let mut stepper = LineStep:...
1
1
2
03bf37ff4a29361c47843369f7d3dc5689b8fdac
Andrew Gallant
2019-04-24T21:21:38
alloc: use jemalloc when building with musl It turns out that musl's allocator is slow enough to cause a fairly noticeable performance regression when ripgrep is built as a static binary with musl. We fix this by using jemalloc when building with musl. We continue to use the default system allocator in all other scen...
diff --git a/Cargo.lock b/Cargo.lock index 9f7343a..5935b6c 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -125,6 +125,11 @@ name = "fnv" version = "1.0.6" source = "registry+https://github.com/rust-lang/crates.io-index" +[[package]] +name = "fs_extra" +version = "1.1.0" +source = "registry+https://github.com/rust-lan...
3
51
0
973de50c9ef451da2cfcdfa86f2b2711d8d6ff48
Andrew Gallant
2019-04-16T17:11:28
ripgrep: release 11.0.1, take 2
diff --git a/Cargo.lock b/Cargo.lock index 4490c1c..9f7343a 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -502,7 +502,7 @@ dependencies = [ [[package]] name = "ripgrep" -version = "11.0.0" +version = "11.0.1" dependencies = [ "bstr 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)", "clap 2.33.0 (reg...
1
1
1
fdde2bcd380488071c88d562fe6e1e5f1b39e47b
Andrew Gallant
2019-04-16T12:34:02
deps: update regex to 1.1.6 This brings in a fix for a regression introduced in ripgrep 11. Fixes #1247
diff --git a/Cargo.lock b/Cargo.lock index 624433b..4490c1c 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -144,7 +144,7 @@ dependencies = [ "fnv 1.0.6 (registry+https://github.com/rust-lang/crates.io-index)", "glob 0.3.0 (registry+https://github.com/rust-lang/crates.io-index)", "log 0.4.6 (registry+https://github.c...
1
9
9
b3dd3ae203942936b00fab9636aa78a990c9b664
Max Horn
2019-04-16T12:31:58
ignore/types: add GAP Add support for file types used by the GAP language, a research system computational discrete algebra, see <https://www.gap-system.org> PR #1249
diff --git a/ignore/src/types.rs b/ignore/src/types.rs index 6ebdeb0..3d2427f 100644 --- a/ignore/src/types.rs +++ b/ignore/src/types.rs @@ -146,6 +146,7 @@ const DEFAULT_TYPES: &'static [(&'static str, &'static [&'static str])] = &[ "*.f90", "*.F90", "*.f95", "*.F95", ]), ("fsharp", &["*.fs", "*.fsx...
1
1
0
1a2a24ea74c1081f492804b2682e9fc0788fb75f
Andrew Gallant
2019-04-15T22:03:46
grep: release 0.2.4
diff --git a/Cargo.lock b/Cargo.lock index adf9612..aa94c6c 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -149,7 +149,7 @@ dependencies = [ [[package]] name = "grep" -version = "0.2.3" +version = "0.2.4" dependencies = [ "grep-cli 0.1.2", "grep-matcher 0.1.2", @@ -506,7 +506,7 @@ version = "0.10.0" dependencies...
3
4
4
d66610b295f503b0faca3d3874fb49be254aeae8
Andrew Gallant
2019-04-15T22:02:44
grep-cli: release 0.1.2
diff --git a/Cargo.lock b/Cargo.lock index cd63bdd..adf9612 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -151,7 +151,7 @@ dependencies = [ name = "grep" version = "0.2.3" dependencies = [ - "grep-cli 0.1.1", + "grep-cli 0.1.2", "grep-matcher 0.1.2", "grep-pcre2 0.1.3", "grep-printer 0.1.2", @@ -163,7 +163,7 @@ ...
3
4
4
019ae1989b2eefa5edbe2ee10d8e328a610bb597
Andrew Gallant
2019-04-15T22:00:49
grep-printer: release 0.1.2
diff --git a/Cargo.lock b/Cargo.lock index ade2f34..cd63bdd 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -154,7 +154,7 @@ dependencies = [ "grep-cli 0.1.1", "grep-matcher 0.1.2", "grep-pcre2 0.1.3", - "grep-printer 0.1.1", + "grep-printer 0.1.2", "grep-regex 0.1.3", "grep-searcher 0.1.4", "termcolor 1.0.4 (r...
3
4
4
36d3f235dc71b41359d0a0df18ab4e2a5dd5decb
Andrew Gallant
2019-04-15T21:59:22
grep-searcher: release 0.1.4
diff --git a/Cargo.lock b/Cargo.lock index 69efaed..ade2f34 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -156,7 +156,7 @@ dependencies = [ "grep-pcre2 0.1.3", "grep-printer 0.1.1", "grep-regex 0.1.3", - "grep-searcher 0.1.3", + "grep-searcher 0.1.4", "termcolor 1.0.4 (registry+https://github.com/rust-lang/crates...
4
6
6
79018eb693c882b8f97535e2fb41b6ff0e90e948
Andrew Gallant
2019-04-15T21:57:03
grep-pcre2: release 0.1.3
diff --git a/Cargo.lock b/Cargo.lock index 76c68c5..69efaed 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -153,7 +153,7 @@ version = "0.2.3" dependencies = [ "grep-cli 0.1.1", "grep-matcher 0.1.2", - "grep-pcre2 0.1.2", + "grep-pcre2 0.1.3", "grep-printer 0.1.1", "grep-regex 0.1.3", "grep-searcher 0.1.3", @@ -...
3
4
4
44cd3444380307a4b137fb427e8f8e67d95f4a48
Andrew Gallant
2019-04-15T21:56:04
grep-regex: release 0.1.3
diff --git a/Cargo.lock b/Cargo.lock index aa2c6a9..76c68c5 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -155,7 +155,7 @@ dependencies = [ "grep-matcher 0.1.2", "grep-pcre2 0.1.2", "grep-printer 0.1.1", - "grep-regex 0.1.2", + "grep-regex 0.1.3", "grep-searcher 0.1.3", "termcolor 1.0.4 (registry+https://github...
5
8
8
e493e54b9b81d729b748d378a5166112da305eb9
Andrew Gallant
2019-04-15T21:53:29
grep-matcher: release 0.1.2
diff --git a/Cargo.lock b/Cargo.lock index 294a288..aa2c6a9 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -152,7 +152,7 @@ name = "grep" version = "0.2.3" dependencies = [ "grep-cli 0.1.1", - "grep-matcher 0.1.1", + "grep-matcher 0.1.2", "grep-pcre2 0.1.2", "grep-printer 0.1.1", "grep-regex 0.1.2", @@ -178,7 +1...
7
12
12
8e8215aa65ac392c31003b62c7989d00e8666304
Andrew Gallant
2019-04-15T21:50:37
ignore: release 0.4.7
diff --git a/Cargo.lock b/Cargo.lock index 2d1798c..294a288 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -237,7 +237,7 @@ dependencies = [ [[package]] name = "ignore" -version = "0.4.6" +version = "0.4.7" dependencies = [ "crossbeam-channel 0.3.8 (registry+https://github.com/rust-lang/crates.io-index)", "globse...
3
4
4
3fe701498ec249d09534e8423085dd00acf6d967
Andrew Gallant
2019-04-15T14:27:28
doc: add note about --pre-glob There was a performance warning in the --pre docs, but didn't mention --pre-glob as a possible mitigation to it.
diff --git a/src/app.rs b/src/app.rs index a4f0aa5..92f908e 100644 --- a/src/app.rs +++ b/src/app.rs @@ -2019,7 +2019,8 @@ or the '--no-pre' flag will disable this behavior. WARNING: When this flag is set, ripgrep will unconditionally spawn a process for every file that is searched. Therefore, this can incur ...
1
2
1
e79085e9e459a09b10aee01447e0f592315af7d8
Andrew Gallant
2019-04-15T18:07:03
release: globset 0.4.3
diff --git a/Cargo.lock b/Cargo.lock index 54a7ac0..2d1798c 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -137,7 +137,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" [[package]] name = "globset" -version = "0.4.2" +version = "0.4.3" dependencies = [ "aho-corasick 0.7.3 (registry+https://githu...
4
6
6
3edb11c513b79f3ae596f8513fec7f94545c483d
Marco Herrn
2019-04-09T15:07:48
ignore/types: add additional java files - .jspx for XHTML JSP files - .properties for Java Properties files (resource bundles, etc.) Closes #1242
diff --git a/ignore/src/types.rs b/ignore/src/types.rs index 79e6c9b..6ebdeb0 100644 --- a/ignore/src/types.rs +++ b/ignore/src/types.rs @@ -156,7 +156,7 @@ const DEFAULT_TYPES: &'static [(&'static str, &'static [&'static str])] = &[ ("hs", &["*.hs", "*.lhs"]), ("html", &["*.htm", "*.html", "*.ejs"]), ("...
1
1
1
9952ba2068bd0f9baf74a2094d0d1db493b71180
Andrew Gallant
2019-04-14T20:57:08
deps: update glob dev-dependency
diff --git a/Cargo.lock b/Cargo.lock index 613eee4..54a7ac0 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -132,7 +132,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" [[package]] name = "glob" -version = "0.2.11" +version = "0.3.0" source = "registry+https://github.com/rust-lang/crates.io-index"...
2
4
4
b751758d60883d6d94418b77df59ecbda97fc07d
Andrew Gallant
2019-04-14T20:49:13
deps: update everything
diff --git a/Cargo.lock b/Cargo.lock index f5da970..613eee4 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -58,7 +58,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" [[package]] name = "cc" -version = "1.0.34" +version = "1.0.35" source = "registry+https://github.com/rust-lang/crates.io-index" ...
1
15
15
a9d71a03680ac9c7b0b26ce6b0570145e7e2e2de
Andrew Gallant
2019-04-14T20:44:18
pcre2: add a few re-exports This adds the top-level is_jit_available and version free functions from the underlying pcre2 crate, and also forwards the max_jit_stack_size option.
diff --git a/grep-pcre2/src/lib.rs b/grep-pcre2/src/lib.rs index 245ceab..d7cb015 100644 --- a/grep-pcre2/src/lib.rs +++ b/grep-pcre2/src/lib.rs @@ -10,6 +10,7 @@ extern crate pcre2; pub use error::{Error, ErrorKind}; pub use matcher::{RegexCaptures, RegexMatcher, RegexMatcherBuilder}; +pub use pcre2::{is_jit_avail...
2
22
0
f3646242cc193b4887cc512b57cca2e80de458b2
Andrew Gallant
2019-04-14T20:40:18
deps: use pcre2 0.2.0 This comes with PCRE 10.32 and a few new options we'll use in subsequent commits.
diff --git a/Cargo.lock b/Cargo.lock index 1a895d1..f5da970 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -189,7 +189,7 @@ name = "grep-pcre2" version = "0.1.2" dependencies = [ "grep-matcher 0.1.1", - "pcre2 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)", + "pcre2 0.2.0 (registry+https://github.com/r...
2
7
7
bd222ae93fa0cabe7d51ba8db40ece99579bdaed
Andrew Gallant
2019-04-11T01:50:31
regex: fix HIR analysis bug An alternate can be empty at this point, so we must handle it. We didn't before because the regex engine actually disallows empty alternates, however, this code runs before the regex compiler rejects the regex.
diff --git a/grep-regex/src/multi.rs b/grep-regex/src/multi.rs index 501e5ac..6e43e97 100644 --- a/grep-regex/src/multi.rs +++ b/grep-regex/src/multi.rs @@ -109,6 +109,7 @@ pub fn alternation_literals(expr: &Hir) -> Option<Vec<Vec<u8>>> { for alt in alts { let mut lit = vec![]; match *alt.kind() ...
1
1
0
4359d8aac0307f7ee36faa7b1ab64646f6160efc
hupfdule
2019-04-09T19:17:57
ignore/types: add more extensions for xml This includes: *.dtd for Document Type Definitions *.xsl and *.xslt for XSL Transformation descriptions *.xsd for XML Schema definitions *.xjb for JAXB bindings *.rng for Relax NG files *.sch for Schematron files PR #1243
diff --git a/ignore/src/types.rs b/ignore/src/types.rs index 47e9a76..79e6c9b 100644 --- a/ignore/src/types.rs +++ b/ignore/src/types.rs @@ -301,7 +301,10 @@ const DEFAULT_TYPES: &'static [(&'static str, &'static [&'static str])] = &[ ("vimscript", &["*.vim"]), ("wiki", &["*.mediawiki", "*.wiki"]), ("web...
1
4
1
308819fb1fd47ad8a27ab82401eca69f24971ca0
tonypai
2019-04-09T14:24:48
ignore/types: add lock files Treat anything with a `.lock` extension as a lock file, with an extra rule or two for special cases, e.g., package-lock.json.
diff --git a/ignore/src/types.rs b/ignore/src/types.rs index e4a31a0..47e9a76 100644 --- a/ignore/src/types.rs +++ b/ignore/src/types.rs @@ -196,6 +196,7 @@ const DEFAULT_TYPES: &'static [(&'static str, &'static [&'static str])] = &[ "OFL-*[0-9]*", ]), ("lisp", &["*.el", "*.jl", "*.lisp", "*.lsp", "*...
1
1
0
743d64f2e4093a3302895e128fbbc58e6fb8ed18
Andrew Gallant
2019-04-06T13:37:33
deps: update to clap 2.33
diff --git a/Cargo.lock b/Cargo.lock index a8420de..9c633d4 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -68,12 +68,12 @@ source = "registry+https://github.com/rust-lang/crates.io-index" [[package]] name = "clap" -version = "2.32.0" +version = "2.33.0" source = "registry+https://github.com/rust-lang/crates.io-index...
1
9
9
1604a18db3d896514e1d536781810642de4b31c1
dana
2019-04-06T12:02:04
ignore/types: add *.am and *.in for C/C++/make PR #1205
diff --git a/ignore/src/types.rs b/ignore/src/types.rs index c04450c..e4a31a0 100644 --- a/ignore/src/types.rs +++ b/ignore/src/types.rs @@ -111,7 +111,7 @@ const DEFAULT_TYPES: &'static [(&'static str, &'static [&'static str])] = &[ ("brotli", &["*.br"]), ("buildstream", &["*.bst"]), ("bzip2", &["*.bz2"...
1
6
5
df4400209afd7703baa6fa5524468f8459eb48bf
dana
2019-04-06T11:59:36
ripgrep: remove extra new-line after Clap output PR #1222
diff --git a/src/args.rs b/src/args.rs index c9f2405..6d9549e 100644 --- a/src/args.rs +++ b/src/args.rs @@ -1654,12 +1654,12 @@ where I: IntoIterator<Item=T>, if err.use_stderr() { return Err(err.into()); } - // Explicitly ignore any error returned by writeln!. The most likely error + // Expli...
1
2
2
77439f99a4535e3b7ba997e5c825dd885a96b725
Andrew Gallant
2019-04-06T02:28:43
deps: add bstr to Cargo.lock
diff --git a/Cargo.lock b/Cargo.lock index fe865c5..095ed41 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -36,6 +36,16 @@ name = "bitflags" version = "1.0.4" source = "registry+https://github.com/rust-lang/crates.io-index" +[[package]] +name = "bstr" +version = "0.1.2" +source = "registry+https://github.com/rust-lang...
1
25
2
be7d6dd9ced86d22f440d5cb79f419a28ca53994
Andrew Gallant
2019-04-06T01:03:22
regex: print out final regex in trace mode This is useful for debugging to see what regex is actually being run. We put this as a trace since the regex can be quite gnarly. (It is not pretty printed.)
diff --git a/grep-regex/src/crlf.rs b/grep-regex/src/crlf.rs index 838a28f..244f536 100644 --- a/grep-regex/src/crlf.rs +++ b/grep-regex/src/crlf.rs @@ -34,6 +34,11 @@ impl CRLFMatcher { } Ok(CRLFMatcher { regex, names }) } + + /// Return the underlying regex used by this matcher. + pub fn ...
3
23
1
9f15e3b671d64efa261f6de0fd4c6c06e0caa21c
Andrew Gallant
2019-04-06T01:02:47
regex: fix a perf bug when using -w flag When looking for an inner literal to speed up searches, if only a prefix is found, then we generally give up doing inner literal optimizations since the regex engine will generally handle it for us. Unfortunately, this decision was being made *before* we wrap the regex in (^|\W...
diff --git a/grep-regex/src/config.rs b/grep-regex/src/config.rs index efed9d4..4defc15 100644 --- a/grep-regex/src/config.rs +++ b/grep-regex/src/config.rs @@ -207,7 +207,7 @@ impl ConfiguredHIR { if self.config.line_terminator.is_none() { return Ok(None); } - match LiteralSets::n...
2
13
8
254b8b67bbe0245a2f117c030d2c10a2dde2ed46
Andrew Gallant
2019-04-06T00:40:39
globset: small perf improvements This tweaks the path handling functions slightly to make them a hair faster. In particular, `file_name` is called on every path that ripgrep visits, and it was possible to remove a few branches without changing behavior.
diff --git a/globset/src/lib.rs b/globset/src/lib.rs index de5948d..6b3ca85 100644 --- a/globset/src/lib.rs +++ b/globset/src/lib.rs @@ -292,6 +292,7 @@ pub struct GlobSet { impl GlobSet { /// Create an empty `GlobSet`. An empty set matches nothing. + #[inline] pub fn empty() -> GlobSet { GlobS...
2
6
13
8a7f43b84dfd4b3e186804a29c66215b3cfeb8f7
Andrew Gallant
2019-04-04T22:33:41
globset: use bstr This simplifies the various path related functions and pushed more platform dependent code down into bstr. This likely also makes things a bit more efficient on Windows, since we now only do a single UTF-8 check for each file path.
diff --git a/globset/Cargo.toml b/globset/Cargo.toml index 81cb2c3..371a327 100644 --- a/globset/Cargo.toml +++ b/globset/Cargo.toml @@ -20,10 +20,10 @@ bench = false [dependencies] aho-corasick = "0.7.3" +bstr = { version = "0.1.2", default-features = false, features = ["std"] } fnv = "1.0.6" log = "0.4.5" -memc...
4
60
94
d968a27ed5298d99e46ff65b68a7f6c2c641105f
Andrew Gallant
2019-04-04T19:15:48
cli: use bstr This uses bstr in the unescaping logic. This lets us remove some platform specific code, and also lets us remove a hacked UTF-8 decoder on raw bytes.
diff --git a/grep-cli/Cargo.toml b/grep-cli/Cargo.toml index 29e15b2..f143e40 100644 --- a/grep-cli/Cargo.toml +++ b/grep-cli/Cargo.toml @@ -14,6 +14,7 @@ license = "Unlicense/MIT" [dependencies] atty = "0.2.11" +bstr = "0.1.2" globset = { version = "0.4.2", path = "../globset" } lazy_static = "1.1.0" log = "0.4...
3
13
63
c52da74ac30aa73a28cf64b9a4d2cdc63c42394a
Andrew Gallant
2019-04-04T01:27:35
printer: use bstr This starts the usage of bstr in the printer. We don't use it too much yet, but it comes in handy for implementing PrinterPath and lets us push down some platform specific code into bstr.
diff --git a/grep-printer/Cargo.toml b/grep-printer/Cargo.toml index e068005..1ce553f 100644 --- a/grep-printer/Cargo.toml +++ b/grep-printer/Cargo.toml @@ -19,6 +19,7 @@ serde1 = ["base64", "serde", "serde_derive", "serde_json"] [dependencies] base64 = { version = "0.10.0", optional = true } +bstr = "0.1.2" grep-...
3
7
18
7dcbff9a9b3e598d4be136d3261d4afecc729d6e
Andrew Gallant
2019-04-03T17:04:52
searcher: partially migrate to bstr This commit causes grep-searcher to use byte strings internally for its line buffer support. We manage to remove a use of `unsafe` by doing this (by pushing it down into `bstr`). We stop short of using byte strings everywhere else because we rely heavily on the `impl ops::Index<[u8...
diff --git a/grep-searcher/Cargo.toml b/grep-searcher/Cargo.toml index 893e2f5..f4875d9 100644 --- a/grep-searcher/Cargo.toml +++ b/grep-searcher/Cargo.toml @@ -13,12 +13,12 @@ keywords = ["regex", "grep", "egrep", "search", "pattern"] license = "Unlicense/MIT" [dependencies] +bstr = { version = "0.1.2", default-fe...
6
63
89
cd9815cb376e4679af93a90a964cdb78173318da
Andrew Gallant
2019-04-03T17:51:26
deps: update to aho-corasick 0.7 We do the simplest possible change to migrate to the new version. Fixes #1228
diff --git a/Cargo.lock b/Cargo.lock index 5b76123..fe865c5 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1,13 +1,5 @@ # This file is automatically @generated by Cargo. # It is not intended for manual editing. -[[package]] -name = "aho-corasick" -version = "0.6.10" -source = "registry+https://github.com/rust-lang/crat...
3
17
28
3f22c3a658b594c40b3a9f9466e481a64c483dc1
Andrew Gallant
2019-04-03T17:07:26
deps: update everything This updates all dependencies to their latest versions. We tolerate a duplicative aho-corasick for now, which we will fix in the next commit.
diff --git a/Cargo.lock b/Cargo.lock index 8fb5470..5b76123 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -8,14 +8,22 @@ dependencies = [ "memchr 2.2.0 (registry+https://github.com/rust-lang/crates.io-index)", ] +[[package]] +name = "aho-corasick" +version = "0.7.3" +source = "registry+https://github.com/rust-lang/c...
1
97
112
09139721047b1cda6ad88dbf89dc5fa74c66a3a2
Andrew Gallant
2019-03-03T21:36:34
deps: bump encoding_rs_io This brings in a new API for disabling BOM sniffing. This is part of the work toward completing https://github.com/BurntSushi/ripgrep/issues/1207
diff --git a/Cargo.lock b/Cargo.lock index 48de330..8fb5470 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -104,7 +104,7 @@ dependencies = [ [[package]] name = "encoding_rs_io" -version = "0.1.4" +version = "0.1.5" source = "registry+https://github.com/rust-lang/crates.io-index" dependencies = [ "encoding_rs 0.8.1...
1
3
3
f19b84fb23e94eb3a738f55d89c3a65225ac4bb3
Andrew Gallant
2019-02-27T22:42:14
regex: bump regex dep to fix match bug See * https://github.com/rust-lang/regex/commit/661bf53d5b2b6dde25549aaad601ad8c59b37bfd * https://github.com/rust-lang/regex/commit/edf45e6f5fa54705298ba14f3216cfb5277c0908 for details on the bug fix, which was in the regex engine. Fixes #1203
diff --git a/Cargo.lock b/Cargo.lock index d23b10b..48de330 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -134,7 +134,7 @@ dependencies = [ "glob 0.2.11 (registry+https://github.com/rust-lang/crates.io-index)", "log 0.4.6 (registry+https://github.com/rust-lang/crates.io-index)", "memchr 2.2.0 (registry+https://gith...
2
20
9
1c7c4e6640f5d0d2c55aff692343c773cff81e2e
Andrew Gallant
2019-02-21T21:32:17
deps: update tempfile
diff --git a/Cargo.lock b/Cargo.lock index 4ba1f01..d23b10b 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -233,7 +233,7 @@ dependencies = [ "memchr 2.2.0 (registry+https://github.com/rust-lang/crates.io-index)", "regex 1.1.0 (registry+https://github.com/rust-lang/crates.io-index)", "same-file 1.0.4 (registry+https:...
1
3
3
69c5e3938d14f9bbd970c9312bb39d92a832ccf7
Andrew Gallant
2019-02-21T21:31:48
deps: bump smallvec This gets rid of the unmaintained crates `unreachable` and `void`. Yay!
diff --git a/Cargo.lock b/Cargo.lock index bb67421..4ba1f01 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -81,7 +81,7 @@ version = "0.3.8" source = "registry+https://github.com/rust-lang/crates.io-index" dependencies = [ "crossbeam-utils 0.6.5 (registry+https://github.com/rust-lang/crates.io-index)", - "smallvec 0.6....
1
3
21
d9cf05ad50d976d55e2c5e1234fa3d03aad4bd66
Andrew Gallant
2019-02-16T16:39:33
deps: update to aho-corasick 0.6.10 This brings in a fix for this bug: https://github.com/BurntSushi/aho-corasick/issues/37 Fixes #1079
diff --git a/Cargo.lock b/Cargo.lock index f177ffb..bb67421 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2,7 +2,7 @@ # It is not intended for manual editing. [[package]] name = "aho-corasick" -version = "0.6.9" +version = "0.6.10" source = "registry+https://github.com/rust-lang/crates.io-index" dependencies = [ ...
1
4
4
af8b6caebbaefb4fb3db018453ee86ede0dfd738
Andrew Gallant
2019-02-16T14:39:42
deps: update various dependencies
diff --git a/Cargo.lock b/Cargo.lock index 09b3b08..f177ffb 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -5,7 +5,7 @@ name = "aho-corasick" version = "0.6.9" source = "registry+https://github.com/rust-lang/crates.io-index" dependencies = [ - "memchr 2.1.3 (registry+https://github.com/rust-lang/crates.io-index)", + "m...
1
20
24
c84cfb67568a6c3bbe3d5867353a666c7e359553
Andrew Gallant
2019-02-16T14:30:06
grep-regex-0.1.2
diff --git a/Cargo.lock b/Cargo.lock index 257e6eb..09b3b08 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -145,7 +145,7 @@ dependencies = [ "grep-matcher 0.1.1", "grep-pcre2 0.1.2", "grep-printer 0.1.1", - "grep-regex 0.1.1", + "grep-regex 0.1.2", "grep-searcher 0.1.3", "termcolor 1.0.4 (registry+https://github...
2
5
5