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 |
|---|---|---|---|---|---|---|---|
14860b0f16ce9cab3c8bb9205a8268b5be22dc30 | Andrew Gallant | 2021-06-12T11:59:07 | ignore-0.4.18 | diff --git a/Cargo.lock b/Cargo.lock
index 6872b2a..725afbc 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -254,7 +254,7 @@ dependencies = [
[[package]]
name = "ignore"
-version = "0.4.17"
+version = "0.4.18"
dependencies = [
"crossbeam-channel",
"crossbeam-utils",
diff --git a/crates/ignore/Cargo.toml b/crates/i... | 2 | 2 | 2 |
0eb1a1e7c9c490d9dc32b2dde25584f8c749c855 | Andrew Gallant | 2021-06-12T11:58:46 | deps/globset: update minimal versions | diff --git a/crates/cli/Cargo.toml b/crates/cli/Cargo.toml
index f75fbac..fbaac74 100644
--- a/crates/cli/Cargo.toml
+++ b/crates/cli/Cargo.toml
@@ -16,7 +16,7 @@ edition = "2018"
[dependencies]
atty = "0.2.11"
bstr = "0.2.0"
-globset = { version = "0.4.5", path = "../globset" }
+globset = { version = "0.4.7", path ... | 2 | 2 | 2 |
5631e5c7a02513131b0e07d77a251e84b38e709a | Andrew Gallant | 2021-06-12T11:56:56 | globset-0.4.7 | diff --git a/Cargo.lock b/Cargo.lock
index 3407465..6872b2a 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -143,7 +143,7 @@ checksum = "9b919933a397b79c37e33b77bb2aa3dc8eb6e165ad809e58ff75bc7db2e34574"
[[package]]
name = "globset"
-version = "0.4.6"
+version = "0.4.7"
dependencies = [
"aho-corasick",
"bstr",
diff... | 2 | 2 | 2 |
0ee85a89f5b0c6a34d9f2fba7f9aaee8527bc90c | Andrew Gallant | 2021-06-12T11:53:42 | deps: update to memmap2
Looking at the changelog for memmap2, the only breaking change was to
MmapOptions, which we don't use. So no migration is needed. | diff --git a/Cargo.lock b/Cargo.lock
index 51a6bd8..3407465 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -1,5 +1,7 @@
# This file is automatically @generated by Cargo.
# It is not intended for manual editing.
+version = 3
+
[[package]]
name = "aho-corasick"
version = "0.7.18"
@@ -338,9 +340,9 @@ checksum = "b16bd47... | 2 | 5 | 3 |
ed9d37959f3500a1f7c3fb50bb32809aa03a55d1 | Andrew Gallant | 2021-06-12T11:52:04 | deps: updates libc and syn | diff --git a/Cargo.lock b/Cargo.lock
index 7b1bb5e..51a6bd8 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -1,7 +1,5 @@
# This file is automatically @generated by Cargo.
# It is not intended for manual editing.
-version = 3
-
[[package]]
name = "aho-corasick"
version = "0.7.18"
@@ -313,9 +311,9 @@ checksum = "e2abad2... | 1 | 4 | 6 |
35c5db6d1ad04f093db5f1e95ff8ff752e2e41db | Andrew Gallant | 2021-06-02T00:46:26 | deps: update everything
Removes two dependencies! autocfg and byteorder. | diff --git a/Cargo.lock b/Cargo.lock
index 573a82f..7b1bb5e 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -22,12 +22,6 @@ dependencies = [
"winapi",
]
-[[package]]
-name = "autocfg"
-version = "1.0.1"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "cdb031dd78e28731d87d56cc8ffef4a8f36ca... | 1 | 26 | 42 |
af54069c51cc3656c9c343a7fb3c9360cfddf505 | Andrew Gallant | 2021-06-01T23:47:46 | edition: run 'cargo fix --edition --edition-idioms --all' | diff --git a/crates/cli/src/human.rs b/crates/cli/src/human.rs
index 7c64cac..0716173 100644
--- a/crates/cli/src/human.rs
+++ b/crates/cli/src/human.rs
@@ -52,7 +52,7 @@ impl error::Error for ParseSizeError {
}
impl fmt::Display for ParseSizeError {
- fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
+ ... | 36 | 107 | 137 |
77a9e9996400483eed4a9746759a842d6b774882 | Andrew Gallant | 2021-06-01T23:31:27 | edition: set edition=2018 | diff --git a/crates/cli/Cargo.toml b/crates/cli/Cargo.toml
index c3f7a8e..f75fbac 100644
--- a/crates/cli/Cargo.toml
+++ b/crates/cli/Cargo.toml
@@ -11,6 +11,7 @@ repository = "https://github.com/BurntSushi/ripgrep/tree/master/crates/cli"
readme = "README.md"
keywords = ["regex", "grep", "cli", "utility", "util"]
li... | 9 | 9 | 0 |
459a9c563706ef84b8710fab8727b770552ed29c | Andrew Gallant | 2021-06-01T23:29:50 | edition: initial 'cargo fix --edition' run | diff --git a/crates/cli/src/decompress.rs b/crates/cli/src/decompress.rs
index 9bd9100..f9637ac 100644
--- a/crates/cli/src/decompress.rs
+++ b/crates/cli/src/decompress.rs
@@ -6,7 +6,7 @@ use std::process::Command;
use globset::{Glob, GlobSet, GlobSetBuilder};
-use process::{CommandError, CommandReader, CommandRe... | 40 | 127 | 125 |
5d0f2b0fc06327dabcb6a2abb7597244cb890ac6 | Ulysse Buonomo | 2021-06-01T14:57:09 | ignore/types: config.ru and *.rbw Ruby
PR #1886 | diff --git a/crates/ignore/src/default_types.rs b/crates/ignore/src/default_types.rs
index dfd2b17..d4d7db3 100644
--- a/crates/ignore/src/default_types.rs
+++ b/crates/ignore/src/default_types.rs
@@ -173,7 +173,12 @@ pub const DEFAULT_TYPES: &[(&str, &[&str])] = &[
("red", &["*.r", "*.red", "*.reds"]),
("rob... | 1 | 6 | 1 |
8a4071eea942c157f5f89bde2885981060a03ab5 | Martin Pool | 2021-05-31T22:54:55 | globset: expand docs and impl Default for GlobSet
Closes #1882, Closes #1883 | diff --git a/crates/globset/src/glob.rs b/crates/globset/src/glob.rs
index 2195f70..1f8009d 100644
--- a/crates/globset/src/glob.rs
+++ b/crates/globset/src/glob.rs
@@ -616,6 +616,8 @@ impl<'a> GlobBuilder<'a> {
}
/// Toggle whether a literal `/` is required to match a path separator.
+ ///
+ /// By d... | 2 | 17 | 1 |
0f502a9439822df41b3140d944f5d03c36144ecd | Marco Ieni | 2020-12-27T18:35:25 | cargo: remove "readme" field
It is apparently no longer required since a README.md file is
automatically detected:
https://doc.rust-lang.org/cargo/reference/manifest.html#the-readme-field
Closes #1770 | diff --git a/Cargo.toml b/Cargo.toml
index 4373560..718344c 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -10,7 +10,6 @@ first class support on Windows, macOS and Linux.
documentation = "https://github.com/BurntSushi/ripgrep"
homepage = "https://github.com/BurntSushi/ripgrep"
repository = "https://github.com/BurntSush... | 1 | 0 | 1 |
5af7707a350d96066c47965075b09050bc1cf33c | Vasili Revelas | 2020-12-28T20:08:19 | cli: fix process leak
If ripgrep was called in a way where the entire contents of a file
aren't read (like --files-with-matches, among other methods), and if the
file was read through an external process, then ripgrep would never reap
that process.
We fix this by introducing an explicit 'close' method, which we now c... | diff --git a/crates/cli/src/decompress.rs b/crates/cli/src/decompress.rs
index 813cca6..9bd9100 100644
--- a/crates/cli/src/decompress.rs
+++ b/crates/cli/src/decompress.rs
@@ -366,6 +366,30 @@ impl DecompressionReader {
let file = File::open(path)?;
Ok(DecompressionReader { rdr: Err(file) })
}
+... | 3 | 117 | 31 |
3f33a83a5f6387952e05d97a2a2ae429c07f7b10 | Vasili Revelas | 2020-12-29T18:48:53 | searcher: remove variable shadowing
The previous variable name was the same as one of the method arguments. | diff --git a/crates/searcher/src/searcher/mod.rs b/crates/searcher/src/searcher/mod.rs
index b64a858..1cbe666 100644
--- a/crates/searcher/src/searcher/mod.rs
+++ b/crates/searcher/src/searcher/mod.rs
@@ -707,14 +707,14 @@ impl Searcher {
self.check_config(&matcher).map_err(S::Error::error_config)?;
... | 1 | 3 | 3 |
35b52d33b97edeff60b77f8f4501ea2ac1af3d51 | Andrew Gallant | 2021-05-30T00:09:58 | regex: add unit tests for non-matching anchor bytes
This is in addition to the integration level test added in
581a35e568c3acd32461d276a4cfe746524e17cd. | diff --git a/crates/regex/src/non_matching.rs b/crates/regex/src/non_matching.rs
index e2e0755..7f68e84 100644
--- a/crates/regex/src/non_matching.rs
+++ b/crates/regex/src/non_matching.rs
@@ -128,4 +128,12 @@ mod tests {
assert_eq!(sparse(&extract(r"\xFF")), sparse_except(&[0xC3, 0xBF]));
assert_eq!(... | 1 | 8 | 0 |
ba965962fe2fc3513aeeaa99665f09099d92045d | jack1142 | 2021-05-28T16:06:10 | ignore/types: add po files to supported types
See: https://www.gnu.org/software/gettext/manual/html_node/PO-Files.html
Closes #1875 | diff --git a/crates/ignore/src/default_types.rs b/crates/ignore/src/default_types.rs
index 2b5c482..52d7d94 100644
--- a/crates/ignore/src/default_types.rs
+++ b/crates/ignore/src/default_types.rs
@@ -156,6 +156,7 @@ pub const DEFAULT_TYPES: &[(&str, &[&str])] = &[
("pdf", &["*.pdf"]),
("perl", &["*.perl", "*... | 1 | 1 | 0 |
2af77242c5b5186ea5ad6d05fa9aaef3d93c1603 | Alessandro Caputo | 2021-05-08T19:35:44 | doc: fix typo in --engine flag docs
Fixes #1862 | diff --git a/crates/core/app.rs b/crates/core/app.rs
index e2688ce..5021583 100644
--- a/crates/core/app.rs
+++ b/crates/core/app.rs
@@ -1209,7 +1209,7 @@ between supported regex engines depending on the features used in a pattern on
a best effort basis.
Note that the 'pcre2' engine is an optional ripgrep feature. ... | 1 | 1 | 1 |
3f4c4188c1150ae21bec2afd11fcc48bce1c1447 | Andrew Gallant | 2021-05-01T11:44:47 | deps: update to regex 1.5.2
This brings in a performance bug fix, merged in
https://github.com/rust-lang/regex/pull/768.
Fixes #1860. | diff --git a/Cargo.lock b/Cargo.lock
index 459232e..8e4ac7e 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -436,9 +436,9 @@ dependencies = [
[[package]]
name = "regex"
-version = "1.5.1"
+version = "1.5.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "a068b905b8cb93815aa3069ae48653d90f... | 1 | 2 | 2 |
ce4b587055d5e3b373a3dfd3ad775ff76d62ddfb | Andrew Gallant | 2021-05-01T00:17:23 | deps: update everything
It looks like no new dependencies have been introduced. Yay!
This update was primarily motivated to bring regex 1.5 in with its new
memmem implementation from the memchr crate. | diff --git a/Cargo.lock b/Cargo.lock
index e84dce2..459232e 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -4,9 +4,9 @@ version = 3
[[package]]
name = "aho-corasick"
-version = "0.7.15"
+version = "0.7.18"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "7404febffaa47dac81aa44dba71523c9d0... | 1 | 49 | 49 |
92286ad4d2a9c8b054de8aaea05c23a7220d20b3 | Dan Bjorge | 2021-04-15T23:21:26 | doc: clarify --hidden definition
On Windows, we didn't previously document that ripgrep
respected both the prefix-dot convention _and_ the "hidden"
attribute on files.
Fixes #1847 | diff --git a/crates/core/app.rs b/crates/core/app.rs
index c97578a..e2688ce 100644
--- a/crates/core/app.rs
+++ b/crates/core/app.rs
@@ -1433,6 +1433,10 @@ Search hidden files and directories. By default, hidden files and directories
are skipped. Note that if a hidden file or a directory is whitelisted in an
ignore f... | 1 | 7 | 0 |
4ebe8375ec69769674a1c2270f2ec32eee1a944c | jgart | 2021-04-04T12:00:12 | ignore/types: add mint
PR #1844 | diff --git a/crates/ignore/src/default_types.rs b/crates/ignore/src/default_types.rs
index c6972f9..2b5c482 100644
--- a/crates/ignore/src/default_types.rs
+++ b/crates/ignore/src/default_types.rs
@@ -140,6 +140,7 @@ pub const DEFAULT_TYPES: &[(&str, &[&str])] = &[
("md", &["*.markdown", "*.md", "*.mdown", "*.mkdn... | 1 | 1 | 0 |
7923d252285d78b023a237d669d741dfa210ff86 | Andrew Gallant | 2021-03-31T17:54:00 | core: add a 'trace' message
This message will emit the binary detection mechanism being used for
each file.
This does not noticeably increases the number of log messages, as the
'trace' level is already used for emitting messages for every file
searched.
This trace message was added in the course of investigating #1... | diff --git a/crates/core/search.rs b/crates/core/search.rs
index 4da4057..239ee51 100644
--- a/crates/core/search.rs
+++ b/crates/core/search.rs
@@ -325,9 +325,10 @@ impl<W: WriteColor> SearchWorker<W> {
} else {
self.config.binary_implicit.clone()
};
- self.searcher.set_binary_det... | 1 | 3 | 2 |
1c3eebefec9b80b77754a1567c70bc6948a044c6 | aricha1940 | 2021-03-31T12:18:38 | searcher: update outdated comment for buffer size
Looks like this was accidentally left set to 8 in commit 46fb77c.
PR #1839 | diff --git a/crates/searcher/src/line_buffer.rs b/crates/searcher/src/line_buffer.rs
index d0f2a87..7aa4cb8 100644
--- a/crates/searcher/src/line_buffer.rs
+++ b/crates/searcher/src/line_buffer.rs
@@ -4,7 +4,7 @@ use std::io;
use bstr::ByteSlice;
/// The default buffer capacity that we use for the line buffer.
-pub... | 1 | 1 | 1 |
46fb77c20cc46e61117d68a68bb306cc665c6da6 | Andrew Gallant | 2021-03-23T21:45:02 | searcher: bump buffer size
This increases the initial buffer size from 8KB to 64KB. This actually
leads to a reasonably noticeable improvement in at least one work-load,
and is unlikely to regress in any other case. Also, since Rust programs
(at least on Linux) seem to always use a minimum of 6-8MB of memory,
adding a... | diff --git a/crates/searcher/src/line_buffer.rs b/crates/searcher/src/line_buffer.rs
index bd3a273..d0f2a87 100644
--- a/crates/searcher/src/line_buffer.rs
+++ b/crates/searcher/src/line_buffer.rs
@@ -4,7 +4,7 @@ use std::io;
use bstr::ByteSlice;
/// The default buffer capacity that we use for the line buffer.
-pub... | 1 | 1 | 1 |
c7730d1f3a366e42fdd497a1e0db4bf090de415c | Andrew Gallant | 2021-03-12T02:20:25 | deps: bump regex and regex-syntax | diff --git a/Cargo.lock b/Cargo.lock
index 454e6ae..e84dce2 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -1,5 +1,7 @@
# This file is automatically @generated by Cargo.
# It is not intended for manual editing.
+version = 3
+
[[package]]
name = "aho-corasick"
version = "0.7.15"
@@ -434,14 +436,13 @@ dependencies = [
... | 1 | 6 | 5 |
9c8d873a75ccb2a8d3ed692148becb2e72514732 | Sergei Vorobev | 2021-01-30T23:22:48 | ignore/types: improve bazel globs
Adds *.BUILD and *.bazelrc.
PR #1789 | diff --git a/crates/ignore/src/default_types.rs b/crates/ignore/src/default_types.rs
index 54fe5cb..c6972f9 100644
--- a/crates/ignore/src/default_types.rs
+++ b/crates/ignore/src/default_types.rs
@@ -21,7 +21,7 @@ pub const DEFAULT_TYPES: &[(&str, &[&str])] = &[
("ats", &["*.ats", "*.dats", "*.sats", "*.hats"]),
... | 1 | 1 | 1 |
7899a4b9312e97bcb684a474ce57e5b5fa0f06dd | Andrew Gallant | 2021-01-25T15:36:53 | regex: s/CachedThreadLocal/ThreadLocal
CachedThreadLocal has been deprecated. We bump thread_local's minimal
version corresponding to that deprecation as well. | diff --git a/Cargo.lock b/Cargo.lock
index 6c38407..454e6ae 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -369,6 +369,12 @@ dependencies = [
"libc",
]
+[[package]]
+name = "once_cell"
+version = "1.5.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "13bd41f508810a131401606d54ac32a467c... | 3 | 16 | 10 |
ae55a4e8724296ae11aad434274b4987f6ce4142 | Andrew Gallant | 2021-01-17T23:55:03 | deps: update everything
Most of these updates come from releases I've made, and the rest appear
minor. No new dependencies have been added, and `const_fn` was removed.
Yay. | diff --git a/Cargo.lock b/Cargo.lock
index 9684657..6c38407 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2,9 +2,9 @@
# It is not intended for manual editing.
[[package]]
name = "aho-corasick"
-version = "0.7.14"
+version = "0.7.15"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "b476ce... | 1 | 36 | 43 |
3a1780d8417e24eb7031ddd07c353e89c3f4d958 | Andrew Gallant | 2021-01-17T23:49:51 | deps: replace memmap with memmap2
memmap is unmaintained at this point and it is being flagged as a
RUSTSEC advisory in ripgrep. This doesn't seem like that big of a deal
to me honestly, but memmap2 looks like a fine choice at this point.
Fixes #1785, Closes #1786 | diff --git a/Cargo.lock b/Cargo.lock
index dae095b..9684657 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -258,7 +258,7 @@ dependencies = [
"grep-matcher",
"grep-regex",
"log",
- "memmap",
+ "memmap2",
"regex",
]
@@ -358,13 +358,12 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum =... | 2 | 5 | 6 |
a6d05475fb353c756e88f605fd5366a67943e591 | Andrew Gallant | 2020-11-23T15:25:33 | ignore-0.4.17 | diff --git a/Cargo.lock b/Cargo.lock
index 4c17316..dae095b 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -273,7 +273,7 @@ dependencies = [
[[package]]
name = "ignore"
-version = "0.4.16"
+version = "0.4.17"
dependencies = [
"crossbeam-channel",
"crossbeam-utils",
diff --git a/crates/ignore/Cargo.toml b/crates/i... | 2 | 2 | 2 |
873abecbf1c4fbac2e070ac33a25e7a23fea6700 | Ed Page | 2020-11-23T15:19:31 | ignore: provide underlying IO Error
`ignore::Error` wraps `std::io::Error` with additional information
(as well as expose non-IO errors). For people wanting to inspect what
the error is, they have to recursively match the Enum. This provides
`io_error` and `into_io_error` helpers to do this for the user.
PR #174... | diff --git a/crates/ignore/src/lib.rs b/crates/ignore/src/lib.rs
index bcf0ef4..e58fa36 100644
--- a/crates/ignore/src/lib.rs
+++ b/crates/ignore/src/lib.rs
@@ -196,6 +196,71 @@ impl Error {
}
}
+ /// Inspect the original [`io::Error`] if there is one.
+ ///
+ /// [`None`] is returned if the [`... | 1 | 65 | 0 |
44e69ba627b08b2068de7f9976a9ea40e5849e9b | James Harr | 2020-11-20T14:41:29 | ignore/types: add yang file type
YANG is described in RFC 6020
https://tools.ietf.org/html/rfc6020
PR #1736 | diff --git a/crates/ignore/src/default_types.rs b/crates/ignore/src/default_types.rs
index 215819f..54fe5cb 100644
--- a/crates/ignore/src/default_types.rs
+++ b/crates/ignore/src/default_types.rs
@@ -241,6 +241,7 @@ pub const DEFAULT_TYPES: &[(&str, &[&str])] = &[
("xz", &["*.xz", "*.txz"]),
("yacc", &["*.y"... | 1 | 1 | 0 |
d6365117e2e5be90397b65ed6f4c20f98a504f22 | Andrew Gallant | 2020-11-15T20:27:23 | doc: sync --help output with man page
The man page had the correct usage hints, but the -h/--help output was
using an older more incorrect version of the hints.
Closes #1730 (again) | diff --git a/crates/core/app.rs b/crates/core/app.rs
index 9785bcc..c97578a 100644
--- a/crates/core/app.rs
+++ b/crates/core/app.rs
@@ -24,10 +24,13 @@ Project home page: https://github.com/BurntSushi/ripgrep
const USAGE: &str = "
rg [OPTIONS] PATTERN [PATH ...]
- rg [OPTIONS] [-e PATTERN ...] [-f PATTERNFI... | 1 | 5 | 2 |
810be0b348b9e9070705329df40c1d182f6645f1 | Andrew Gallant | 2020-11-02T15:07:59 | deps: update base64 to 0.13.0 | diff --git a/Cargo.lock b/Cargo.lock
index bacdae0..4c17316 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -28,9 +28,9 @@ checksum = "cdb031dd78e28731d87d56cc8ffef4a8f36ca26c38fe2de700543e627f8a464a"
[[package]]
name = "base64"
-version = "0.12.3"
+version = "0.13.0"
source = "registry+https://github.com/rust-lang/cr... | 2 | 3 | 3 |
a28bb1e9531c238e730150c454585ed0d5ebcdb5 | Andrew Gallant | 2020-11-02T15:06:13 | deps: bring in all semver updates
This brings in all other semver updates.
This did require updating some tests, since bstr changed its debug
output for NUL bytes to be a bit more idiomatic. | diff --git a/Cargo.lock b/Cargo.lock
index df0e9e9..bacdae0 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2,9 +2,9 @@
# It is not intended for manual editing.
[[package]]
name = "aho-corasick"
-version = "0.7.10"
+version = "0.7.14"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "871640... | 3 | 59 | 59 |
3ef63dacbed48e9c569722059922f37964a9494e | Andrew Gallant | 2020-11-02T14:04:39 | deps: targeted update of some dependencies
This updates encoding_rs, crossbeam-utils and crossbeam-channel. This
serves two purposes. The encoding_rs update fixes a compilation failure
on the latest nightly. The crossbeam updates are good sense and to
reduce duplicate dependencies such as cfg-if. (Although, we note th... | diff --git a/Cargo.lock b/Cargo.lock
index f8ab814..df0e9e9 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -76,6 +76,12 @@ version = "0.1.10"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "4785bdd1c96b2a846b2bd7cc02e86b6b3dbf14e7e53446c4f54c92a361040822"
+[[package]]
+name = "cfg-if"
+ver... | 2 | 39 | 25 |
e1ac18ef069878db1179706cb35ae08e1db6978b | Vanessa McHale | 2020-10-31T16:10:15 | ignore/types: add Futhark
See: https://futhark-lang.org/
PR #1720 | diff --git a/crates/ignore/src/default_types.rs b/crates/ignore/src/default_types.rs
index 36a75a0..215819f 100644
--- a/crates/ignore/src/default_types.rs
+++ b/crates/ignore/src/default_types.rs
@@ -68,6 +68,7 @@ pub const DEFAULT_TYPES: &[(&str, &[&str])] = &[
"*.f90", "*.F90", "*.f95", "*.F95",
]),
... | 1 | 1 | 0 |
ba3f9673ad2dcf42a837f3eb00c4927a6e66b071 | Brandon Adams | 2020-10-23T16:24:30 | ignore/types: generalize bazel type a bit
Bazel supports `BUILD.bazel` as well as `WORKSPACE.bazel`. In
addition, it is common to ship BUILD/WORKSPACE templates for
external repositories suffixed with .bazel for easier tool
recognition.
Co-authored-by: Brandon Adams <brandon.adams@imc.com>
PR #1716 | diff --git a/crates/ignore/src/default_types.rs b/crates/ignore/src/default_types.rs
index 038e006..36a75a0 100644
--- a/crates/ignore/src/default_types.rs
+++ b/crates/ignore/src/default_types.rs
@@ -21,7 +21,7 @@ pub const DEFAULT_TYPES: &[(&str, &[&str])] = &[
("ats", &["*.ats", "*.dats", "*.sats", "*.hats"]),
... | 1 | 1 | 1 |
c777e2cd5766128e11f7fd5dffd79e1ba8a753fb | Andrew Gallant | 2020-10-22T01:10:43 | globset-0.4.6 | diff --git a/Cargo.lock b/Cargo.lock
index 396006e..f8ab814 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -148,7 +148,7 @@ checksum = "9b919933a397b79c37e33b77bb2aa3dc8eb6e165ad809e58ff75bc7db2e34574"
[[package]]
name = "globset"
-version = "0.4.5"
+version = "0.4.6"
dependencies = [
"aho-corasick",
"bstr",
diff... | 2 | 2 | 2 |
e5639cf22d138d86b04f1097f42e0f9e13438aa5 | Ajeet D'Souza | 2020-10-19T18:29:05 | globset: remove regex unicode dependency
Since the translation from a glob to a regex always
disables Unicode in the regex, it follows that we shouldn't
need regex's Unicode features enabled.
Now, ripgrep enables Unicode features in its regex
dependency and of course uses them, which will cause
globset to have ... | diff --git a/crates/globset/Cargo.toml b/crates/globset/Cargo.toml
index 7c99359..d00b124 100644
--- a/crates/globset/Cargo.toml
+++ b/crates/globset/Cargo.toml
@@ -23,7 +23,7 @@ aho-corasick = "0.7.3"
bstr = { version = "0.2.0", default-features = false, features = ["std"] }
fnv = "1.0.6"
log = "0.4.5"
-regex = "1.... | 1 | 1 | 1 |
86c843a44bc70b377c724a2bf9a6251da1f5f5b9 | Dương Đỗ Minh Châu | 2020-10-19T13:10:54 | ignore/types: add a type for minified files
Fixes #1710, PR #1711 | diff --git a/crates/ignore/src/default_types.rs b/crates/ignore/src/default_types.rs
index 6810b1e..038e006 100644
--- a/crates/ignore/src/default_types.rs
+++ b/crates/ignore/src/default_types.rs
@@ -138,6 +138,7 @@ pub const DEFAULT_TYPES: &[(&str, &[&str])] = &[
("matlab", &["*.m"]),
("md", &["*.markdown",... | 1 | 1 | 0 |
2b1637d1db5f8d20f417db11e3ef157b02556429 | Andrew Gallant | 2020-10-17T22:55:44 | doc: clarify how -S/--smart-case works
Whether or not smart case kicks in can be a little subtle in some cases.
So we document the specific conditions in which it applies. These
conditions were taken directly from the public API docs of the
`grep-regex` crate:
https://docs.rs/grep-regex/0.1.8/grep_regex/struct.RegexMa... | diff --git a/crates/core/app.rs b/crates/core/app.rs
index 056dc33..9785bcc 100644
--- a/crates/core/app.rs
+++ b/crates/core/app.rs
@@ -2634,6 +2634,15 @@ fn flag_smart_case(args: &mut Vec<RGArg>) {
Searches case insensitively if the pattern is all lowercase. Search case
sensitively otherwise.
+A pattern is consid... | 1 | 9 | 0 |
6301e20ee460d11e0d81e2efacd8c52d2e231c0f | Andrew Pyatkov | 2020-10-17T00:19:16 | ignore/types: add flatbuffers type
See: https://google.github.io/flatbuffers/
PR #1707 | diff --git a/crates/ignore/src/default_types.rs b/crates/ignore/src/default_types.rs
index 079843a..6810b1e 100644
--- a/crates/ignore/src/default_types.rs
+++ b/crates/ignore/src/default_types.rs
@@ -62,6 +62,7 @@ pub const DEFAULT_TYPES: &[(&str, &[&str])] = &[
("erlang", &["*.erl", "*.hrl"]),
("fidl", &["*... | 1 | 1 | 0 |
145cef2eff6e10f3a5dbe1cab4ff0f7f2bc5a2a7 | dana | 2020-10-16T13:52:42 | doc: elaborate on the function of -u/--unrestricted
Fixes #1703 | diff --git a/crates/core/app.rs b/crates/core/app.rs
index 74cddbf..056dc33 100644
--- a/crates/core/app.rs
+++ b/crates/core/app.rs
@@ -1945,6 +1945,10 @@ Don't respect ignore files (.gitignore, .ignore, etc.). This implies
This does *not* imply --no-ignore-files, since --ignore-file is specified
explicitly as a com... | 1 | 7 | 2 |
11c7b2ae17c0c2547eaffc92ac80ff03bd9950d7 | Andrew Gallant | 2020-08-27T13:37:53 | deps: upgrade pcre2-sys to 0.2.5
This brings in a PR that disables the JIT on certain Apple targets since
it doesn't appear to build.
See: https://github.com/BurntSushi/rust-pcre2/pull/16 | diff --git a/Cargo.lock b/Cargo.lock
index 3658fff..396006e 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -387,9 +387,9 @@ dependencies = [
[[package]]
name = "pcre2-sys"
-version = "0.2.4"
+version = "0.2.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "69273127cf90457a84319ddb7c137b... | 1 | 2 | 2 |
ac7d4c99b97fab5dc6792daa62a0385879d70904 | Andrew Gallant | 2020-08-19T23:03:50 | deps: bump pcre2-sys again
The pcre2-sys 0.2.3 release was bunk, since it didn't include the PCRE2
source for some reason. | diff --git a/Cargo.lock b/Cargo.lock
index a2e22f6..3658fff 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -387,9 +387,9 @@ dependencies = [
[[package]]
name = "pcre2-sys"
-version = "0.2.3"
+version = "0.2.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "620a4af35edca6f8733c266d537cf8... | 1 | 2 | 2 |
b5681e36949cc7f70fe872cf31546337a809894a | Andrew Gallant | 2020-08-19T22:55:16 | deps: bump pcre2-sys
This should bring a compilation time improvement when building static
buils of PCRE2 by enabling parallelism for C compilation.
Kudos to @JoshTriplett for the tip! | diff --git a/Cargo.lock b/Cargo.lock
index 36d47b6..a2e22f6 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -4,596 +4,606 @@
name = "aho-corasick"
version = "0.7.10"
source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "8716408b8bc624ed7f65d223ddb9ac2d044c0547b6fa4b0d554f3a9540496ada"
dependenci... | 1 | 212 | 202 |
fc2a99bb1f4b5c1562db846fe8074223553f3e1e | Andy Freeland | 2020-08-19T20:28:14 | ignore/types: add vcl (#1659)
VCL is the Varnish Configuration Language used by Varnish and Fastly.
https://varnish-cache.org/docs/trunk/users-guide/vcl.html
PR #1659 | diff --git a/crates/ignore/src/default_types.rs b/crates/ignore/src/default_types.rs
index dce6f29..079843a 100644
--- a/crates/ignore/src/default_types.rs
+++ b/crates/ignore/src/default_types.rs
@@ -224,6 +224,7 @@ pub const DEFAULT_TYPES: &[(&str, &[&str])] = &[
("typoscript", &["*.typoscript", "*.ts"]),
(... | 1 | 1 | 0 |
ffd4c9ccba0ffc74270a8d3ae75f11a7ba7a1a64 | Raimon Grau (rgrau) | 2020-06-25T12:51:32 | ignore/types: add racket
PR #1628 | diff --git a/crates/ignore/src/default_types.rs b/crates/ignore/src/default_types.rs
index 10df2b3..dce6f29 100644
--- a/crates/ignore/src/default_types.rs
+++ b/crates/ignore/src/default_types.rs
@@ -162,6 +162,7 @@ pub const DEFAULT_TYPES: &[(&str, &[&str])] = &[
("qmake", &["*.pro", "*.pri", "*.prf"]),
("q... | 1 | 1 | 0 |
a16bfcb3d695d1d1158b20253806945581f80c80 | jtrakk | 2020-06-09T11:44:09 | ignore/types: add dvc
This provides support for DVC files (https://dvc.org/).
PR #1608 | diff --git a/crates/ignore/src/default_types.rs b/crates/ignore/src/default_types.rs
index a0c5bf7..10df2b3 100644
--- a/crates/ignore/src/default_types.rs
+++ b/crates/ignore/src/default_types.rs
@@ -52,6 +52,7 @@ pub const DEFAULT_TYPES: &[(&str, &[&str])] = &[
("dhall", &["*.dhall"]),
("diff", &["*.patch",... | 1 | 1 | 0 |
a2f90747c9bf883a5580542cfe340e683dcc9c3e | Andrew Gallant | 2020-05-29T13:18:59 | core: update minimal dependency versions | diff --git a/Cargo.toml b/Cargo.toml
index d7086ae..dfa76d9 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -43,8 +43,8 @@ members = [
[dependencies]
bstr = "0.2.12"
-grep = { version = "0.2.6", path = "crates/grep" }
-ignore = { version = "0.4.15", path = "crates/ignore" }
+grep = { version = "0.2.7", path = "crates/g... | 1 | 2 | 2 |
f97cc623f77ae8a387ecc3c733a518fee6955677 | Andrew Gallant | 2020-05-29T13:17:24 | grep-0.2.7 | diff --git a/Cargo.lock b/Cargo.lock
index 39fa24e..2b4266e 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -142,7 +142,7 @@ dependencies = [
[[package]]
name = "grep"
-version = "0.2.6"
+version = "0.2.7"
dependencies = [
"grep-cli 0.1.5",
"grep-matcher 0.1.4",
@@ -403,7 +403,7 @@ version = "12.1.0"
dependencies... | 2 | 3 | 3 |
f35de5c523182bb83ed7de6b36efb3d4f67baa8d | Andrew Gallant | 2020-05-29T13:17:08 | grep: update minimal dependency versions | diff --git a/crates/grep/Cargo.toml b/crates/grep/Cargo.toml
index 603f9a0..e611175 100644
--- a/crates/grep/Cargo.toml
+++ b/crates/grep/Cargo.toml
@@ -13,7 +13,7 @@ keywords = ["regex", "grep", "egrep", "search", "pattern"]
license = "Unlicense/MIT"
[dependencies]
-grep-cli = { version = "0.1.4", path = "../cli" ... | 1 | 1 | 1 |
c9bb78ceba1a2e270b18d9977c220f30c7d86e40 | Andrew Gallant | 2020-05-29T13:14:18 | grep-cli-0.1.5 | diff --git a/Cargo.lock b/Cargo.lock
index 51e6f5a..39fa24e 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -144,7 +144,7 @@ dependencies = [
name = "grep"
version = "0.2.6"
dependencies = [
- "grep-cli 0.1.4",
+ "grep-cli 0.1.5",
"grep-matcher 0.1.4",
"grep-pcre2 0.1.4",
"grep-printer 0.1.5",
@@ -156,7 +156,7 @@ ... | 2 | 3 | 3 |
72bdde677100d8384c89da0ef1d7136dda03d1f3 | Andrew Gallant | 2020-05-29T13:13:02 | ignore-0.4.16 | diff --git a/Cargo.lock b/Cargo.lock
index 2cd256a..51e6f5a 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -238,7 +238,7 @@ dependencies = [
[[package]]
name = "ignore"
-version = "0.4.15"
+version = "0.4.16"
dependencies = [
"crossbeam-channel 0.4.2 (registry+https://github.com/rust-lang/crates.io-index)",
"cros... | 2 | 3 | 3 |
d66712a4529811301f35d70743ba92ac91c1dd11 | Andrew Gallant | 2020-05-29T13:11:50 | deps: update all dependencies | diff --git a/Cargo.lock b/Cargo.lock
index f3499d7..2cd256a 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -13,8 +13,8 @@ name = "atty"
version = "0.2.14"
source = "registry+https://github.com/rust-lang/crates.io-index"
dependencies = [
- "hermit-abi 0.1.12 (registry+https://github.com/rust-lang/crates.io-index)",
- "l... | 1 | 76 | 76 |
e8822ce97a191d8a5830fd5b77b7ae424cd645b5 | Andy Salerno | 2020-05-25T03:12:53 | ignore/doc: update misleading documentation
This likely originated from a bad copy/paste.
PR #1596 | diff --git a/crates/core/args.rs b/crates/core/args.rs
index 9baf079..ad1679d 100644
--- a/crates/core/args.rs
+++ b/crates/core/args.rs
@@ -346,7 +346,7 @@ impl Args {
Ok(self.matches().walker_builder(self.paths())?.build())
}
- /// Return a walker that never uses additional threads.
+ /// Return... | 1 | 1 | 1 |
b72ad8f8aa897191cef8e7ebacd8d4eb5f4b9065 | Gerion Entrup | 2020-05-18T18:01:35 | ignore/types: add meson filetype
Closes #1586, PR #1587 | diff --git a/crates/ignore/src/default_types.rs b/crates/ignore/src/default_types.rs
index fa83b3d..a0c5bf7 100644
--- a/crates/ignore/src/default_types.rs
+++ b/crates/ignore/src/default_types.rs
@@ -135,6 +135,7 @@ pub const DEFAULT_TYPES: &[(&str, &[&str])] = &[
("markdown", &["*.markdown", "*.md", "*.mdown", "... | 1 | 1 | 0 |
72807462e8cdecc54c224a202baca5462f44b983 | Andrew Gallant | 2020-05-09T14:39:43 | deps: update minimal versions for dependencies | diff --git a/Cargo.toml b/Cargo.toml
index 7592638..e48b6f2 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -19,10 +19,6 @@ build = "build.rs"
autotests = false
edition = "2018"
-[badges]
-# I guess crates.io does not support GitHub Action badges yet.
-# Tracking PR: https://github.com/rust-lang/crates.io/pull/1838
-
... | 3 | 4 | 8 |
08dee094ddbcc7a3449a1953efefe581a67a0bf0 | Andrew Gallant | 2020-05-09T14:37:29 | grep-0.2.6 | diff --git a/Cargo.lock b/Cargo.lock
index 4ccb4b3..a172c9d 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -142,7 +142,7 @@ dependencies = [
[[package]]
name = "grep"
-version = "0.2.5"
+version = "0.2.6"
dependencies = [
"grep-cli 0.1.4",
"grep-matcher 0.1.4",
@@ -403,7 +403,7 @@ version = "12.0.1"
dependencies... | 2 | 3 | 3 |
caa53b7b09aab414058e30feb0af805ab4bfc1bd | Andrew Gallant | 2020-05-09T14:37:08 | grep: update minimal dependency versions | diff --git a/crates/grep/Cargo.toml b/crates/grep/Cargo.toml
index 1c8f5ab..25aa14d 100644
--- a/crates/grep/Cargo.toml
+++ b/crates/grep/Cargo.toml
@@ -16,8 +16,8 @@ license = "Unlicense/MIT"
grep-cli = { version = "0.1.4", path = "../cli" }
grep-matcher = { version = "0.1.4", path = "../matcher" }
grep-pcre2 = { v... | 1 | 2 | 2 |
c5d6141562348a06828637db53c4317256e0950a | Andrew Gallant | 2020-05-09T14:33:02 | grep-printer-0.1.5 | diff --git a/Cargo.lock b/Cargo.lock
index 4ee92d3..4ccb4b3 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -147,7 +147,7 @@ dependencies = [
"grep-cli 0.1.4",
"grep-matcher 0.1.4",
"grep-pcre2 0.1.4",
- "grep-printer 0.1.4",
+ "grep-printer 0.1.5",
"grep-regex 0.1.8",
"grep-searcher 0.1.7",
"termcolor 1.1.0 (r... | 2 | 3 | 3 |
c0f0492b98710f39605bf6d6bca81d6f49b17a12 | Andrew Gallant | 2020-05-09T14:31:29 | grep-regex-0.1.8 | diff --git a/Cargo.lock b/Cargo.lock
index f3b245a..4ee92d3 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -148,7 +148,7 @@ dependencies = [
"grep-matcher 0.1.4",
"grep-pcre2 0.1.4",
"grep-printer 0.1.4",
- "grep-regex 0.1.7",
+ "grep-regex 0.1.8",
"grep-searcher 0.1.7",
"termcolor 1.1.0 (registry+https://github... | 2 | 5 | 5 |
568018386b850cca3d6759397b18d604ae91e6eb | Andrew Gallant | 2020-05-09T14:27:19 | ignore-0.4.15 | diff --git a/Cargo.lock b/Cargo.lock
index bd93d33..f3b245a 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -238,7 +238,7 @@ dependencies = [
[[package]]
name = "ignore"
-version = "0.4.14"
+version = "0.4.15"
dependencies = [
"crossbeam-channel 0.4.2 (registry+https://github.com/rust-lang/crates.io-index)",
"cros... | 2 | 3 | 3 |
b458cf39f26f3cd238a56d2f0aa31322bbbc5fcd | Andrew Gallant | 2020-05-09T14:25:37 | deps: update to base64 0.12
No code changes were necessary. | diff --git a/Cargo.lock b/Cargo.lock
index 3ebadec..bd93d33 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -25,7 +25,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
[[package]]
name = "base64"
-version = "0.11.0"
+version = "0.12.1"
source = "registry+https://github.com/rust-lang/crates.io-index... | 2 | 4 | 4 |
3fd2694fbc39347214c8ac549be8cc78c4dbd018 | Andrew Gallant | 2020-05-09T13:05:51 | deps: update all dependencies
Everything looks pretty minor. | diff --git a/Cargo.lock b/Cargo.lock
index b2eea07..3ebadec 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -13,7 +13,7 @@ name = "atty"
version = "0.2.14"
source = "registry+https://github.com/rust-lang/crates.io-index"
dependencies = [
- "hermit-abi 0.1.11 (registry+https://github.com/rust-lang/crates.io-index)",
+ "h... | 1 | 45 | 45 |
793c1179ccd7e755d635beee8be5c1e2202d404b | Casey Rodarmor | 2020-04-21T01:40:22 | ignore: allow filtering with predicate
Adds `WalkBuilder::filter_entry` that takes a predicate to be applied to
all entries. If the predicate returns `false` on a given entry, that
entry and all children will be skipped.
Fixes #1555, Closes #1557 | diff --git a/crates/ignore/src/walk.rs b/crates/ignore/src/walk.rs
index 65606ee..31c1d9f 100644
--- a/crates/ignore/src/walk.rs
+++ b/crates/ignore/src/walk.rs
@@ -489,6 +489,7 @@ pub struct WalkBuilder {
sorter: Option<Sorter>,
threads: usize,
skip: Option<Arc<Handle>>,
+ filter: Option<Filter>,
}
... | 1 | 66 | 2 |
28f2a93caefef8018c786c80c9b47f13f62c01c3 | Andrew Gallant | 2020-05-08T16:03:45 | doc: shorten -h/--help prelude
It has grown quite long. It would be nice if we could shorten this only
when -h is used and keep it long for --help, but it seems clap doesn't
let this happen. (It does have `about` and `long_about` options, but
they don't work, even when I disable the use of the template.)
The longer p... | diff --git a/crates/core/app.rs b/crates/core/app.rs
index 39e1057..69f9b57 100644
--- a/crates/core/app.rs
+++ b/crates/core/app.rs
@@ -17,27 +17,10 @@ ripgrep (rg) recursively searches your current directory for a regex pattern.
By default, ripgrep will respect your .gitignore and automatically skip hidden
files/di... | 1 | 2 | 19 |
a2e6aec7a4d9382941932245e8854f0ae5703a5e | Andrew Gallant | 2020-04-23T12:36:54 | tests: add new regression test for fixed inner literal bug
This adds a new test case for a bug (#1537) that has already been fixed.
Or more precisely, a new bug with the same root cause.
Closes #1559 | diff --git a/tests/regression.rs b/tests/regression.rs
index 6cdf8b9..1bfd4f0 100644
--- a/tests/regression.rs
+++ b/tests/regression.rs
@@ -799,3 +799,26 @@ rgtest!(r1537, |dir: Dir, mut cmd: TestCommand| {
let expected = "foo:abc;de,fg\n";
eqnice!(expected, cmd.arg(";(.*,){1}").stdout());
});
+
+// See: ht... | 1 | 23 | 0 |
73103df6d982da1a0dc775e9b7a03f5bb8cfd7fb | Andrew Gallant | 2020-04-18T15:33:27 | deps: small dependency updates | diff --git a/Cargo.lock b/Cargo.lock
index c5e8d40..b2eea07 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -13,8 +13,8 @@ name = "atty"
version = "0.2.14"
source = "registry+https://github.com/rust-lang/crates.io-index"
dependencies = [
- "hermit-abi 0.1.9 (registry+https://github.com/rust-lang/crates.io-index)",
- "li... | 1 | 53 | 53 |
139f186e5721e74542604fad8a3c5907c4911faa | Andrew Gallant | 2020-04-17T23:58:47 | crates/ignore: switch to depth first traversal
This replaces the use of channels in the parallel directory traversal
with a simple stack. The primary motivation for this change is to reduce
peak memory usage. In particular, when using a channel (which is a
queue), we wind up visiting files in a breadth first fashion. ... | diff --git a/crates/ignore/Cargo.toml b/crates/ignore/Cargo.toml
index f33cb3c..479d595 100644
--- a/crates/ignore/Cargo.toml
+++ b/crates/ignore/Cargo.toml
@@ -18,7 +18,6 @@ name = "ignore"
bench = false
[dependencies]
-crossbeam-channel = "0.4.0"
crossbeam-utils = "0.7.0"
globset = { version = "0.4.3", path = "... | 3 | 57 | 43 |
a75b4d122a479bedf01b571c42c864e199e57ed2 | Andrew Gallant | 2020-04-13T12:49:27 | doc: fix newline escape
Fixes #1551 | diff --git a/crates/core/app.rs b/crates/core/app.rs
index 8eec24c..a2c7c3d 100644
--- a/crates/core/app.rs
+++ b/crates/core/app.rs
@@ -2374,7 +2374,7 @@ 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 me... | 1 | 1 | 1 |
3d6a58faffc025861a977a8c09375d96a9b1452c | Marius Schulz | 2020-03-30T21:31:16 | doc: fix typo in help description
PR #1536 | diff --git a/crates/core/app.rs b/crates/core/app.rs
index 1c1db3f..8eec24c 100644
--- a/crates/core/app.rs
+++ b/crates/core/app.rs
@@ -2313,7 +2313,7 @@ This flag can be disabled with --no-one-file-system.
}
fn flag_only_matching(args: &mut Vec<RGArg>) {
- const SHORT: &str = "Print only matches parts of a lin... | 1 | 1 | 1 |
09a4b75bafe8798de2835f6a65a9bfa645bc3fce | Andrew Gallant | 2020-03-29T22:49:01 | ignore-0.4.14 | diff --git a/Cargo.lock b/Cargo.lock
index b79dbbe..cb68766 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -238,7 +238,7 @@ dependencies = [
[[package]]
name = "ignore"
-version = "0.4.13"
+version = "0.4.14"
dependencies = [
"crossbeam-channel 0.4.2 (registry+https://github.com/rust-lang/crates.io-index)",
"cros... | 2 | 3 | 3 |
b9bb04b793abf9789efb5bb4850c7c13e6056eff | Andrew Gallant | 2020-03-29T22:47:15 | deps: minor dependency updates | diff --git a/Cargo.lock b/Cargo.lock
index 4da2fb0..b79dbbe 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -13,8 +13,8 @@ name = "atty"
version = "0.2.14"
source = "registry+https://github.com/rust-lang/crates.io-index"
dependencies = [
- "hermit-abi 0.1.8 (registry+https://github.com/rust-lang/crates.io-index)",
- "li... | 1 | 41 | 41 |
4dfea016b915bb1e88679361de83a91e60447835 | Zoltan Puskas | 2020-03-29T02:05:33 | ignore/types: add ebuild type
Add support for Gentoo's portage package manager spec files:
https://wiki.gentoo.org/wiki/Portage | diff --git a/crates/ignore/src/default_types.rs b/crates/ignore/src/default_types.rs
index 21b1c08..9136647 100644
--- a/crates/ignore/src/default_types.rs
+++ b/crates/ignore/src/default_types.rs
@@ -52,6 +52,7 @@ pub const DEFAULT_TYPES: &[(&str, &[&str])] = &[
("dhall", &["*.dhall"]),
("diff", &["*.patch",... | 1 | 1 | 0 |
67c0f576b6e1197c3cf80fe5d53cfd8326cf1d56 | Andrew Gallant | 2020-03-23T01:08:37 | ignore-0.4.13 | diff --git a/Cargo.lock b/Cargo.lock
index 54bad3c..4da2fb0 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -238,7 +238,7 @@ dependencies = [
[[package]]
name = "ignore"
-version = "0.4.12"
+version = "0.4.13"
dependencies = [
"crossbeam-channel 0.4.2 (registry+https://github.com/rust-lang/crates.io-index)",
"cros... | 2 | 3 | 3 |
543f99dbf16c3a60f9c304f55923c0238d3acbe2 | Andrew Gallant | 2020-03-23T01:08:19 | grep-regex-0.1.7 | diff --git a/Cargo.lock b/Cargo.lock
index 2e31620..54bad3c 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -148,7 +148,7 @@ dependencies = [
"grep-matcher 0.1.4",
"grep-pcre2 0.1.4",
"grep-printer 0.1.4",
- "grep-regex 0.1.6",
+ "grep-regex 0.1.7",
"grep-searcher 0.1.7",
"termcolor 1.1.0 (registry+https://github... | 2 | 5 | 5 |
0ea65efd6d7a98b721fcf5f62a6e549204ee01b2 | Andrew Gallant | 2020-03-23T01:02:51 | regex: special case literal extraction
In a prior commit, we fixed a performance problem with the -w flag by
doing a little extra work to extract literals. It turns out that using
literals in this case when the -w flag is NOT used results in a
performance regression. The reasoning is that we end up using a "fast"
rege... | diff --git a/crates/regex/src/literal.rs b/crates/regex/src/literal.rs
index 49bc4ca..f1184fa 100644
--- a/crates/regex/src/literal.rs
+++ b/crates/regex/src/literal.rs
@@ -141,6 +141,9 @@ impl LiteralSets {
// (Not in theory---it could be better. But the current
// implementation isn't good e... | 1 | 3 | 0 |
20deae6497820587ee523a72b6326356016994a6 | Paul A. Patience | 2020-03-22T11:43:16 | tests: fix typo in test name
PR #1528 | diff --git a/tests/misc.rs b/tests/misc.rs
index 3f8c3ea..16792a2 100644
--- a/tests/misc.rs
+++ b/tests/misc.rs
@@ -511,7 +511,7 @@ rgtest!(context_line_numbers, |dir: Dir, mut cmd: TestCommand| {
eqnice!(expected, cmd.stdout());
});
-rgtest!(max_filesize_parse_errro_length, |_: Dir, mut cmd: TestCommand| {
+r... | 1 | 1 | 1 |
655e33219a671dab4432c6f29785244870cc74f6 | Andrew Gallant | 2020-03-17T21:47:42 | crates.io: remove badges
... and don't replace them with anything because crates.io does not
support GitHub Actions yet. But it's almost there:
https://github.com/rust-lang/crates.io/pull/1838
Thanks @atouchet for noticing this. | diff --git a/Cargo.toml b/Cargo.toml
index 66ce484..e982c6f 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -20,8 +20,8 @@ autotests = false
edition = "2018"
[badges]
-travis-ci = { repository = "BurntSushi/ripgrep" }
-appveyor = { repository = "BurntSushi/ripgrep" }
+# I guess crates.io does not support GitHub Action ... | 1 | 2 | 2 |
8ba6ccd159ba6bee6ad869a2a09565f3625febb7 | Andrew Gallant | 2020-03-16T23:16:24 | ignore: fix failing test
This fixes fallout from fixing #1520. | diff --git a/crates/ignore/src/dir.rs b/crates/ignore/src/dir.rs
index fbce80d..296c803 100644
--- a/crates/ignore/src/dir.rs
+++ b/crates/ignore/src/dir.rs
@@ -837,7 +837,7 @@ fn resolve_git_commondir(
#[cfg(test)]
mod tests {
use std::fs::{self, File};
- use std::io::{self, Write};
+ use std::io::Write;
... | 1 | 5 | 18 |
92daa34eb3031ae2c61bb81da4d9245b1fa7fff9 | Andrew Gallant | 2020-03-16T01:38:59 | ripgrep: release 12.0.0 | diff --git a/Cargo.lock b/Cargo.lock
index 1a436e7..2e31620 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -127,7 +127,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
[[package]]
name = "globset"
-version = "0.4.4"
+version = "0.4.5"
dependencies = [
"aho-corasick 0.7.10 (registry+https://gith... | 11 | 51 | 51 |
9dd4bf8d7fe291ebdb3d3277d06d4708d98169e9 | Andrew Gallant | 2020-03-15T15:48:34 | style: fix rust-analyzer lint warnings | diff --git a/crates/regex/src/config.rs b/crates/regex/src/config.rs
index 1f81a80..6d2813a 100644
--- a/crates/regex/src/config.rs
+++ b/crates/regex/src/config.rs
@@ -87,7 +87,7 @@ impl Config {
Ok(ConfiguredHIR {
original: pattern.to_string(),
config: self.clone(),
- ana... | 3 | 6 | 6 |
aab3d80374d5ba4a926d2928ccd476f99846b312 | pierrenn | 2020-02-27T15:47:34 | args: refactor to permit adding other engines
This is in preparation for adding a new --engine flag which is intended
to eventually supplant --auto-hybrid-regex.
While there are no immediate plans to add more regex engines to ripgrep,
this is intended to make it easier to maintain a patch to ripgrep with
an additiona... | diff --git a/crates/core/args.rs b/crates/core/args.rs
index d99e777..17f08b9 100644
--- a/crates/core/args.rs
+++ b/crates/core/args.rs
@@ -576,58 +576,77 @@ impl ArgMatches {
///
/// If there was a problem building the matcher (e.g., a syntax error),
/// then this returns an error.
- #[cfg(feature =... | 1 | 87 | 49 |
1856cda77be5bd4cd505e63f32816e4cb14be8cc | Andrew Gallant | 2020-03-15T13:04:39 | style: fix rust-analyzer lints in core | diff --git a/crates/core/app.rs b/crates/core/app.rs
index 7031d80..f6af799 100644
--- a/crates/core/app.rs
+++ b/crates/core/app.rs
@@ -297,14 +297,11 @@ impl RGArg {
fn positional(name: &'static str, value_name: &'static str) -> RGArg {
RGArg {
claparg: Arg::with_name(name).value_name(value... | 5 | 15 | 20 |
7340d8dbbe59e3c4d942f71e5a9aed4e0dae1269 | Andrew Gallant | 2020-03-15T12:32:33 | deps: update everything
This adds one new dependency, maybe-uninit, which is brought in by
crossbeam-channel[1]. This is to apparently fix some unsound code
without bumping the MSRV. Since ripgrep uses the latest stable release
of Rust, the maybe-uninit crate should compile down to nothing and just
re-export std's `Ma... | diff --git a/Cargo.lock b/Cargo.lock
index 01e3fb9..1a436e7 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2,10 +2,10 @@
# It is not intended for manual editing.
[[package]]
name = "aho-corasick"
-version = "0.7.7"
+version = "0.7.10"
source = "registry+https://github.com/rust-lang/crates.io-index"
dependencies = [
... | 1 | 93 | 86 |
50d2047ae2c0ce2edb5189ae3071538e21b15822 | chip | 2020-02-29T01:31:43 | crates: update URLs in Cargo.toml
This corrects an oversight when the repo was re-organized to
have its crates moved into a 'crates' sub-directory.
PR #1505 | diff --git a/crates/cli/Cargo.toml b/crates/cli/Cargo.toml
index 67b83f4..e20c1f7 100644
--- a/crates/cli/Cargo.toml
+++ b/crates/cli/Cargo.toml
@@ -6,8 +6,8 @@ description = """
Utilities for search oriented command line applications.
"""
documentation = "https://docs.rs/grep-cli"
-homepage = "https://github.com/Bu... | 9 | 18 | 18 |
227436624f2b76a4cc5e7f6c2d7cd9dc2f597d20 | Wolf Honore | 2020-02-29T00:11:29 | ignore/types: add coq type
PR #1504 | diff --git a/crates/ignore/src/default_types.rs b/crates/ignore/src/default_types.rs
index 8f96a90..21b1c08 100644
--- a/crates/ignore/src/default_types.rs
+++ b/crates/ignore/src/default_types.rs
@@ -34,6 +34,7 @@ pub const DEFAULT_TYPES: &[(&str, &[&str])] = &[
("cmake", &["*.cmake", "CMakeLists.txt"]),
("c... | 1 | 1 | 0 |
4176050cdd49c74b2abbb32ad4f8237bc9628cc4 | Andrew Gallant | 2020-02-20T22:26:34 | ignore: another simplification
Again, thanks to @zsugabubus! | diff --git a/crates/ignore/src/walk.rs b/crates/ignore/src/walk.rs
index 0502d36..6734788 100644
--- a/crates/ignore/src/walk.rs
+++ b/crates/ignore/src/walk.rs
@@ -1195,7 +1195,6 @@ impl WalkParallel {
// this. The best case scenario would be finding a way to use rayon
// to do this.
let (tx... | 1 | 1 | 2 |
109460fce2e491aae0c2f2414e2c16141d352331 | Andrew Gallant | 2020-02-20T21:49:54 | ignore: simplify parallel worker initialization
We can just ask the channel whether any work has been loaded. Normally
querying a channel for its length is a strong predictor of bugs, but in
this case, we do it before we ever attempt a `recv`, so it should work.
Kudos to @zsugabubus for suggesting this! | diff --git a/crates/ignore/src/walk.rs b/crates/ignore/src/walk.rs
index ecf87b8..0502d36 100644
--- a/crates/ignore/src/walk.rs
+++ b/crates/ignore/src/walk.rs
@@ -1198,7 +1198,6 @@ impl WalkParallel {
let num_pending = Arc::new(AtomicUsize::new(0));
{
let mut visitor = builder.build();
... | 1 | 1 | 3 |
f314b0d55f2fa7c9f19b677624a19a7ba24c7cf4 | Andrew Gallant | 2020-02-20T20:08:37 | ignore: fix parallel traversal
It turns out that the previous version wasn't quite correct. Namely, it
was possible for the following sequence to occur:
1. Consider that all workers, except for one, are `waiting`.
2. The last remaining worker finds one more job to do and sends it on
the channel.
3. One of the prev... | diff --git a/crates/ignore/src/walk.rs b/crates/ignore/src/walk.rs
index b2063cd..ecf87b8 100644
--- a/crates/ignore/src/walk.rs
+++ b/crates/ignore/src/walk.rs
@@ -1073,6 +1073,10 @@ pub enum WalkState {
}
impl WalkState {
+ fn is_continue(&self) -> bool {
+ *self == WalkState::Continue
+ }
+
fn ... | 1 | 99 | 94 |
fab5c812f31627ea5d57d5710cd3ccbd73244a2b | Andrew Gallant | 2020-02-19T12:28:08 | tests: add debugging output
The transient failures appear to be persisting and they are quite
difficult to debug. So include a full directory listing in the output of
every test failure. | diff --git a/Cargo.lock b/Cargo.lock
index 3c6dacb..1367b85 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -406,6 +406,7 @@ dependencies = [
"serde_derive 1.0.104 (registry+https://github.com/rust-lang/crates.io-index)",
"serde_json 1.0.45 (registry+https://github.com/rust-lang/crates.io-index)",
"termcolor 1.1.0 (r... | 3 | 29 | 3 |
c824d095a7ed2f028520f3a0e7df4ed536cf2bc1 | Andrew Gallant | 2020-02-19T12:09:54 | tests: use std::env::consts::EXE_SUFFIX
This avoids a conditional compilation knob and is likely more portable. | diff --git a/tests/util.rs b/tests/util.rs
index daba256..9256ca3 100644
--- a/tests/util.rs
+++ b/tests/util.rs
@@ -172,11 +172,7 @@ impl Dir {
/// Returns the path to the ripgrep executable.
pub fn bin(&self) -> process::Command {
- let rg = if cfg!(windows) {
- self.root.join("../rg.exe... | 1 | 1 | 5 |
ee21897ebd35fc875a790b7ef0192609e81489f0 | Andrew Gallant | 2020-02-19T00:12:34 | tests: make 'cross test' work
The reason why it wasn't working was the integration tests. Namely, the
integration tests attempted to execute the 'rg' binary directly from
inside cross's docker container. But this obviously doesn't work when
'rg' was compiled for a totally different architecture.
Cross normally does t... | diff --git a/tests/util.rs b/tests/util.rs
index b6f6d3c..daba256 100644
--- a/tests/util.rs
+++ b/tests/util.rs
@@ -160,7 +160,7 @@ impl Dir {
/// on all systems. Tests that need to check `--path-separator` itself
/// can simply pass it again to override it.
pub fn command(&self) -> TestCommand {
- ... | 1 | 34 | 3 |
b44554c803dffe50af354c0eb960fa2a0fc79cec | asymmetric | 2020-02-19T12:07:09 | ignore/types: add K type
Adds support for files used by the K executable semantic framework:
http://www.kframework.org/index.php/Main_Page
PR #1493 | diff --git a/crates/ignore/src/default_types.rs b/crates/ignore/src/default_types.rs
index 8a07779..8f96a90 100644
--- a/crates/ignore/src/default_types.rs
+++ b/crates/ignore/src/default_types.rs
@@ -85,6 +85,7 @@ pub const DEFAULT_TYPES: &[(&str, &[&str])] = &[
("jsonl", &["*.jsonl"]),
("julia", &["*.jl"]),... | 1 | 1 | 0 |
3d59bd98aaea776092168f8feaf5daeeaf743cbf | zsugabubus | 2019-08-02T11:56:06 | ignore: rework inter-thread messaging
Change the meaning of `Quit` message. Now it means terminate. The final
"dance" is unnecessary, because by the time quitting begins, no thread
will ever spawn a new `Work`. The trick was to replace the heuristic
spin-loop with blocking receive.
Closes #1337 | diff --git a/ignore/src/walk.rs b/ignore/src/walk.rs
index b430981..ed321ee 100644
--- a/ignore/src/walk.rs
+++ b/ignore/src/walk.rs
@@ -6,11 +6,9 @@ use std::io;
use std::path::{Path, PathBuf};
use std::sync::atomic::{AtomicBool, AtomicUsize, Ordering};
use std::sync::Arc;
-use std::thread;
-use std::time::Duration... | 1 | 49 | 118 |
322fc75a3da11242c3e23a60bc4cddbc688552b0 | Jakub Wieczorek | 2019-09-03T21:47:33 | ignore: make walker visit untraversable directories
This commit fixes an inconsistency between the serial and the parallel
directory walkers around visiting a directory for which the user holds
insufficient permissions to descend into.
The serial walker does produce a successful entry for a directory that
it cannot d... | diff --git a/ignore/src/walk.rs b/ignore/src/walk.rs
index 365d049..bbe6d7d 100644
--- a/ignore/src/walk.rs
+++ b/ignore/src/walk.rs
@@ -1409,16 +1409,7 @@ impl<'s> Worker<'s> {
return;
}
}
- let readdir = match work.read_dir() {
- Ok(readdir)... | 1 | 45 | 11 |
f8e70294d5741391521f638b80ba786888896b94 | Ed Page | 2019-10-27T01:02:10 | ignore: allow post-processing at end-of-thread
On top of the parallel-walk's closures, this provides a Visitor API.
This clarifies the role of the two different closures in the `run`
API and allows implementing of `Drop` for post-processing once traversal
is finished.
The closure API is maintained not just for compat... | diff --git a/ignore/src/lib.rs b/ignore/src/lib.rs
index c78c5e0..6cbf4af 100644
--- a/ignore/src/lib.rs
+++ b/ignore/src/lib.rs
@@ -65,7 +65,10 @@ use std::fmt;
use std::io;
use std::path::{Path, PathBuf};
-pub use walk::{DirEntry, Walk, WalkBuilder, WalkParallel, WalkState};
+pub use walk::{
+ DirEntry, Walk, ... | 2 | 91 | 17 |
578e2d47a82051275c498851763faa8b2c398c72 | Ed Page | 2019-11-21T14:03:27 | core: simplify parallel walking using borrows
This changes ripgrep to use ignore's new support for borrowing data when
walking in parallel. | diff --git a/src/main.rs b/src/main.rs
index 6c8826b..5a8a5eb 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -1,7 +1,7 @@
use std::error;
use std::io::{self, Write};
use std::process;
-use std::sync::{Arc, Mutex};
+use std::sync::Mutex;
use std::time::Instant;
use ignore::WalkState;
@@ -55,16 +55,15 @@ fn main() ... | 1 | 24 | 28 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.