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
edafb612d2b93b0dc28531abf155bdd7e3bcfe63
robert-bryson
2024-05-02T18:08:57
core: add "total" to --stats output This makes it a little clearer. Apologies to anyone who is regex matching on this output. Closes #2797
diff --git a/crates/core/main.rs b/crates/core/main.rs index 64f35ce..bcafefe 100644 --- a/crates/core/main.rs +++ b/crates/core/main.rs @@ -468,7 +468,7 @@ fn print_stats<W: Write>( {bytes_printed} bytes printed {bytes_searched} bytes searched {search_time:0.6} seconds spent searching -{process_time:0.6} seconds +{...
1
1
1
c93fc793a08f3a97e02457d5132b4cc346768014
Riccardo Attilio Galli
2024-02-04T17:53:39
searcher: add more tests for `replace_bytes` ... and add a comment explaining an optimization. Closes #2729
diff --git a/crates/searcher/src/line_buffer.rs b/crates/searcher/src/line_buffer.rs index e73c650..2a7ff09 100644 --- a/crates/searcher/src/line_buffer.rs +++ b/crates/searcher/src/line_buffer.rs @@ -538,6 +538,11 @@ fn replace_bytes( while let Some(i) = bytes.find_byte(src) { bytes[i] = replacement; ...
1
8
0
7c004f224eb2c7b7a04ac246b456f0e4d6d36c9d
Keith Smiley
2024-01-31T21:11:13
ignore/types: detect `WORKSPACE.bzlmod` for bazel file type This file came alongside MODULE.bazel and I should have added it here previously. Closes #2726
diff --git a/crates/ignore/src/default_types.rs b/crates/ignore/src/default_types.rs index 35cb197..e1da789 100644 --- a/crates/ignore/src/default_types.rs +++ b/crates/ignore/src/default_types.rs @@ -27,7 +27,7 @@ pub(crate) const DEFAULT_TYPES: &[(&[&str], &[&str])] = &[ (&["bat", "batch"], &["*.bat"]), (&[...
1
1
1
bfe2def12183f66689f23f52d85100fbc4b42d1a
Andrew Gallant
2025-07-11T16:59:47
tests: add test for filtering hidden files Note that this isn't a regression test. In particular, this didn't fail with ripgrep 14.1.1. I couldn't figure out how to turn what the OP gave me into a failing test. With #829 fixed, if the OP can provide a better regression test, it might make sense to re-investigate this...
diff --git a/tests/regression.rs b/tests/regression.rs index 95f10d4..46da128 100644 --- a/tests/regression.rs +++ b/tests/regression.rs @@ -569,6 +569,64 @@ rgtest!(r807, |dir: Dir, mut cmd: TestCommand| { eqnice!(".a/c/file:test\n", cmd.arg("--hidden").arg("test").stdout()); }); +// See: https://github.com/Bu...
1
58
0
90a680ab45a7eaaffcccb22c4946771d6b424f02
wang384670111
2024-01-08T08:10:57
impl: switch most atomic ops to `Relaxed` ordering These all seem pretty straight-forward. Compared with #2706, I dropped the changes to the atomic orderings used in `ignore` because I haven't had time to think through that carefully. But the ops in this PR seem fine. Closes #2706
diff --git a/crates/core/messages.rs b/crates/core/messages.rs index ba8b9ad..333e707 100644 --- a/crates/core/messages.rs +++ b/crates/core/messages.rs @@ -99,19 +99,19 @@ macro_rules! ignore_message { /// Returns true if and only if messages should be shown. pub(crate) fn messages() -> bool { - MESSAGES.load(O...
3
8
8
3b7fd442a6f3aa73f650e763d7cbb902c03d700e
Andrew Gallant
2025-07-04T14:12:38
deps: update everything It looks like a new dependency on `getrandom` was added (which brings in a few more dependencies itself) because of `jobserver`. Thankfully, `jobserver` is only used when ripgrep's `pcre2` feature is enabled, so this still keeps the default set of dependencies very small.
diff --git a/Cargo.lock b/Cargo.lock index fb94f9d..2feff12 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -13,15 +13,21 @@ dependencies = [ [[package]] name = "anyhow" -version = "1.0.87" +version = "1.0.98" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "10f00e1f6e58a40e807377c75c6a7f9...
1
99
56
5fbc4fee64131b5cd14675be71e43768a9763553
Pierre Rouleau
2025-04-07T14:53:32
ignore/types: fix Seed7 file extension PR #3023
diff --git a/crates/ignore/src/default_types.rs b/crates/ignore/src/default_types.rs index f1c799a..35cb197 100644 --- a/crates/ignore/src/default_types.rs +++ b/crates/ignore/src/default_types.rs @@ -232,7 +232,7 @@ pub(crate) const DEFAULT_TYPES: &[(&[&str], &[&str])] = &[ (&["rust"], &["*.rs"]), (&["sass"]...
1
1
1
004370bd1619183b54dbaa41719728edfe892ac6
Pierre Rouleau
2025-04-07T12:51:22
ignore/types: add support for Seed7 files For more info on the Seed7 programming Language see: - on Wikipedia: https://en.wikipedia.org/wiki/Seed7 - Seed7 home: https://seed7.sourceforge.net/ - Seed7 repo: https://github.com/ThomasMertes/seed7 PR #3022
diff --git a/crates/ignore/src/default_types.rs b/crates/ignore/src/default_types.rs index 2cf8ad8..f1c799a 100644 --- a/crates/ignore/src/default_types.rs +++ b/crates/ignore/src/default_types.rs @@ -232,6 +232,7 @@ pub(crate) const DEFAULT_TYPES: &[(&[&str], &[&str])] = &[ (&["rust"], &["*.rs"]), (&["sass"]...
1
1
0
de4baa10024f2cb62d438596274b9b710e01c59b
Andrew Gallant
2025-02-27T17:46:58
globset-0.4.16
diff --git a/Cargo.lock b/Cargo.lock index 5ca69a0..07420ec 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -105,7 +105,7 @@ checksum = "d2fabcfbdc87f4758337ca535fb41a6d701b65693ce38287d856d1674551ec9b" [[package]] name = "globset" -version = "0.4.15" +version = "0.4.16" dependencies = [ "aho-corasick", "bstr", di...
2
2
2
163ac157d371e97a8ceb2c88f884e50698cefe5b
Andrew Gallant
2025-02-27T17:37:06
globset: escape `{` and `}` in `escape` This appears to be an oversight from when `escape` was implemented in #2061.
diff --git a/crates/globset/src/lib.rs b/crates/globset/src/lib.rs index b1fc696..e804e12 100644 --- a/crates/globset/src/lib.rs +++ b/crates/globset/src/lib.rs @@ -928,13 +928,26 @@ impl RequiredExtensionStrategyBuilder { /// /// The escaping works by surrounding meta-characters with brackets. For /// example, `*` ...
1
14
1
e2362d4d5185d02fa857bf381e7bd52e66fafc73
Andrew Gallant
2025-01-25T19:25:22
searcher: add log message noting detected encoding This helps improve diagnostics. Otherwise it can be easy to miss that ripgrep is doing transcoding. Fixes #2979
diff --git a/crates/searcher/src/searcher/mod.rs b/crates/searcher/src/searcher/mod.rs index deda17e..c7d3b1d 100644 --- a/crates/searcher/src/searcher/mod.rs +++ b/crates/searcher/src/searcher/mod.rs @@ -1004,6 +1004,7 @@ fn slice_has_bom(slice: &[u8]) -> bool { None => return false, Some((enc, _)) =...
1
1
0
bf63fe8f258afc09bae6caa48f0ae35eaf115005
Thayne McCombs
2024-09-19T13:30:31
regex: add as_match method to Captures trait Ref https://github.com/rust-lang/regex/issues/1146 PR #2898
diff --git a/crates/matcher/src/lib.rs b/crates/matcher/src/lib.rs index 40cbff5..25afb06 100644 --- a/crates/matcher/src/lib.rs +++ b/crates/matcher/src/lib.rs @@ -389,6 +389,15 @@ pub trait Captures { /// for the overall match. fn get(&self, i: usize) -> Option<Match>; + /// Return the overall match fo...
1
9
0
b9f7a9ba2bede566a6a981c6a7a004836a8c4138
Andrew Gallant
2024-09-09T02:11:17
deps: bump grep to 0.3.2
diff --git a/Cargo.toml b/Cargo.toml index 0c7a994..cea08d1 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -51,7 +51,7 @@ members = [ [dependencies] anyhow = "1.0.75" bstr = "1.7.0" -grep = { version = "0.3.1", path = "crates/grep" } +grep = { version = "0.3.2", path = "crates/grep" } ignore = { version = "0.4.23", pa...
1
1
1
a1960877cf699c77419b1965bcfa4de98767946f
Andrew Gallant
2024-09-09T02:11:00
grep-0.3.2
diff --git a/Cargo.lock b/Cargo.lock index da265f9..3500321 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -119,7 +119,7 @@ dependencies = [ [[package]] name = "grep" -version = "0.3.1" +version = "0.3.2" dependencies = [ "grep-cli", "grep-matcher", diff --git a/crates/grep/Cargo.toml b/crates/grep/Cargo.toml ind...
2
2
2
bb0925af9159d552af0bdbdafeea7d4271d575b9
Andrew Gallant
2024-09-09T02:10:49
deps: bump grep-printer to 0.2.2
diff --git a/crates/grep/Cargo.toml b/crates/grep/Cargo.toml index 12eb0d1..90cf598 100644 --- a/crates/grep/Cargo.toml +++ b/crates/grep/Cargo.toml @@ -17,7 +17,7 @@ edition = "2021" grep-cli = { version = "0.1.11", path = "../cli" } grep-matcher = { version = "0.1.7", path = "../matcher" } grep-pcre2 = { version =...
1
1
1
be117dbafa6f7a550a4e5f1ba71bcc96b0a8c4e1
Andrew Gallant
2024-09-09T02:10:29
grep-printer-0.2.2
diff --git a/Cargo.lock b/Cargo.lock index f3a4702..da265f9 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -162,7 +162,7 @@ dependencies = [ [[package]] name = "grep-printer" -version = "0.2.1" +version = "0.2.2" dependencies = [ "bstr", "grep-matcher", diff --git a/crates/printer/Cargo.toml b/crates/printer/Carg...
2
2
2
06dc13ad2d7543fb241743c44036db464ee3ff38
Andrew Gallant
2024-09-09T02:09:55
deps: bump grep-searcher to 0.1.14
diff --git a/crates/grep/Cargo.toml b/crates/grep/Cargo.toml index 7dad9ce..12eb0d1 100644 --- a/crates/grep/Cargo.toml +++ b/crates/grep/Cargo.toml @@ -19,7 +19,7 @@ grep-matcher = { version = "0.1.7", path = "../matcher" } grep-pcre2 = { version = "0.1.8", path = "../pcre2", optional = true } grep-printer = { versi...
2
2
2
c6c2e69b8f7b7289789c483da8b04dbd529f3c91
Andrew Gallant
2024-09-09T02:09:27
grep-searcher-0.1.14
diff --git a/Cargo.lock b/Cargo.lock index 93b909c..f3a4702 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -187,7 +187,7 @@ dependencies = [ [[package]] name = "grep-searcher" -version = "0.1.13" +version = "0.1.14" dependencies = [ "bstr", "encoding_rs", diff --git a/crates/searcher/Cargo.toml b/crates/searcher/...
2
2
2
e67c868dddb75cad2a961d364bdf8a74514a2731
Andrew Gallant
2024-09-09T02:09:23
deps: bump grep-pcre2 to 0.1.8
diff --git a/crates/grep/Cargo.toml b/crates/grep/Cargo.toml index 1de42e0..7dad9ce 100644 --- a/crates/grep/Cargo.toml +++ b/crates/grep/Cargo.toml @@ -16,7 +16,7 @@ edition = "2021" [dependencies] grep-cli = { version = "0.1.11", path = "../cli" } grep-matcher = { version = "0.1.7", path = "../matcher" } -grep-pcr...
1
1
1
d33f2e2f70c4c7c4e262badb45d4c88ebbdcdbc5
Andrew Gallant
2024-09-09T02:08:41
grep-pcre2-0.1.8
diff --git a/Cargo.lock b/Cargo.lock index 9e39e18..93b909c 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -153,7 +153,7 @@ dependencies = [ [[package]] name = "grep-pcre2" -version = "0.1.7" +version = "0.1.8" dependencies = [ "grep-matcher", "log", diff --git a/crates/pcre2/Cargo.toml b/crates/pcre2/Cargo.toml ...
2
2
2
082edafffaa4961ab5e6a17dcc58878549eb6b7a
Andrew Gallant
2024-09-09T02:08:22
deps: bump grep-regex to 0.1.13
diff --git a/crates/grep/Cargo.toml b/crates/grep/Cargo.toml index 26c6c5a..1de42e0 100644 --- a/crates/grep/Cargo.toml +++ b/crates/grep/Cargo.toml @@ -18,7 +18,7 @@ grep-cli = { version = "0.1.11", path = "../cli" } grep-matcher = { version = "0.1.7", path = "../matcher" } grep-pcre2 = { version = "0.1.7", path = "...
3
3
3
7c8dc332b3a59b4902d3eec76fd98b676071eb0b
Andrew Gallant
2024-09-09T02:07:52
grep-regex-0.1.13
diff --git a/Cargo.lock b/Cargo.lock index 6e918d3..9e39e18 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -176,7 +176,7 @@ dependencies = [ [[package]] name = "grep-regex" -version = "0.1.12" +version = "0.1.13" dependencies = [ "bstr", "grep-matcher", diff --git a/crates/regex/Cargo.toml b/crates/regex/Cargo.to...
2
2
2
ea961915b5e4c709886168b033ba43c0fad664ce
Andrew Gallant
2024-09-09T02:07:30
deps: bump grep-cli to 0.1.11
diff --git a/crates/grep/Cargo.toml b/crates/grep/Cargo.toml index a615f48..26c6c5a 100644 --- a/crates/grep/Cargo.toml +++ b/crates/grep/Cargo.toml @@ -14,7 +14,7 @@ license = "Unlicense OR MIT" edition = "2021" [dependencies] -grep-cli = { version = "0.1.10", path = "../cli" } +grep-cli = { version = "0.1.11", pa...
1
1
1
7943bdfe82182de1bf6d05cbd9cd87d2c32a3130
Andrew Gallant
2024-09-09T02:06:59
grep-cli-0.1.11
diff --git a/Cargo.lock b/Cargo.lock index 80e6b57..6e918d3 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -133,7 +133,7 @@ dependencies = [ [[package]] name = "grep-cli" -version = "0.1.10" +version = "0.1.11" dependencies = [ "bstr", "globset", diff --git a/crates/cli/Cargo.toml b/crates/cli/Cargo.toml index d9...
2
2
2
312a7884fc6ad9e4dd07542a77bf8e94503440ad
Andrew Gallant
2024-09-09T02:06:39
deps: bump ignore to 0.4.23
diff --git a/Cargo.toml b/Cargo.toml index 6bb068b..0c7a994 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -52,7 +52,7 @@ members = [ anyhow = "1.0.75" bstr = "1.7.0" grep = { version = "0.3.1", path = "crates/grep" } -ignore = { version = "0.4.22", path = "crates/ignore" } +ignore = { version = "0.4.23", path = "crate...
1
1
1
ac02f54c892cc22cf32344600360a911537b2a27
Andrew Gallant
2024-09-09T02:06:03
ignore-0.4.23
diff --git a/Cargo.lock b/Cargo.lock index 71e3165..80e6b57 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -202,7 +202,7 @@ dependencies = [ [[package]] name = "ignore" -version = "0.4.22" +version = "0.4.23" dependencies = [ "bstr", "crossbeam-channel", diff --git a/crates/ignore/Cargo.toml b/crates/ignore/Cargo...
2
2
2
24b337b9405b59724beb927de9e41d4ec329713f
Andrew Gallant
2024-09-09T02:05:45
deps: bump globset to 0.4.15
diff --git a/crates/cli/Cargo.toml b/crates/cli/Cargo.toml index af10033..d99a9f2 100644 --- a/crates/cli/Cargo.toml +++ b/crates/cli/Cargo.toml @@ -15,7 +15,7 @@ edition = "2021" [dependencies] bstr = { version = "1.6.2", features = ["std"] } -globset = { version = "0.4.14", path = "../globset" } +globset = { vers...
2
2
2
a5083f99ce1d777d0ce223c30f5789fb7d47783a
Andrew Gallant
2024-09-09T02:04:48
globset-0.4.15
diff --git a/Cargo.lock b/Cargo.lock index 6e9324a..71e3165 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -105,7 +105,7 @@ checksum = "d2fabcfbdc87f4758337ca535fb41a6d701b65693ce38287d856d1674551ec9b" [[package]] name = "globset" -version = "0.4.14" +version = "0.4.15" dependencies = [ "aho-corasick", "bstr", di...
2
2
2
f7b677d13620f11327669f768b3c6cabb4c8f2d7
Andrew Gallant
2024-09-09T02:03:29
deps: update everything
diff --git a/Cargo.lock b/Cargo.lock index 0b9622e..6e9324a 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -13,9 +13,9 @@ dependencies = [ [[package]] name = "anyhow" -version = "1.0.86" +version = "1.0.87" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b3d1d046238990b9cf5bcde22a3fb3584...
1
12
12
9d738ad0c009e6632d75fa3d36051e5ae7f7cce6
Andrew Gallant
2024-09-09T01:44:26
regex: fix inner literal extraction that resulted in false negatives In some rare cases, it was possible for ripgrep's inner literal detector to extract a set of literals that could produce a false negative. #2884 gives an example: `(?i:e.x|ex)`. In this case, the set extracted can be discovered by running `rg '(?i:e....
diff --git a/crates/regex/src/literal.rs b/crates/regex/src/literal.rs index a45f749..a33da2a 100644 --- a/crates/regex/src/literal.rs +++ b/crates/regex/src/literal.rs @@ -430,6 +430,7 @@ impl Extractor { } seq1.union(seq2); assert!(seq1.len().map_or(true, |x| x <= self.limit_total)); + ...
2
23
28
e0f1000df67f82ab0e735bad40e9b45b2d774ef0
Andrew Gallant
2024-08-28T15:38:43
deps: update everything This removes `once_cell` (a dependency of `cc`) but adds `shlex` (also a dependency of `cc`). AFAIK, ripgrep does not utilize anything in `cc` that requires `shlex`, which is pretty unfortunate that we have to spend time compiling it. (We use `cc` only when the `pcre2` feature is enabled.)
diff --git a/Cargo.lock b/Cargo.lock index cd6461d..0b9622e 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -13,15 +13,15 @@ dependencies = [ [[package]] name = "anyhow" -version = "1.0.82" +version = "1.0.86" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f538837af36e6f6a9be0faa67f9a314...
1
70
69
af8c386d5e10eaa4b8cb687c4f5b05893a7ae0ce
Cort Spellman
2024-08-02T21:32:42
doc: fix typo in --heading flag help PR #2864
diff --git a/crates/core/flags/defs.rs b/crates/core/flags/defs.rs index be85b90..9a196c4 100644 --- a/crates/core/flags/defs.rs +++ b/crates/core/flags/defs.rs @@ -2627,7 +2627,7 @@ of printing the file path as a prefix for each matched line. This is the default mode when printing to a tty. .sp When \fBstdout\fP is...
1
1
1
c9ebcbd8abe48c8336fb4826df7e9b6fb179de03
Tobias Decking
2024-06-05T13:56:00
globset: optimize character escaping Rewrites the char_to_escaped_literal and bytes_to_escaped_literal functions in a way that minimizes heap allocations. After this, the resulting string is the only allocation remaining. I believe when this code was originally written, the routines available to avoid heap alloc...
diff --git a/crates/globset/src/glob.rs b/crates/globset/src/glob.rs index 83c0834..c25e3f2 100644 --- a/crates/globset/src/glob.rs +++ b/crates/globset/src/glob.rs @@ -1,3 +1,4 @@ +use std::fmt::Write; use std::path::{is_separator, Path}; use regex_automata::meta::Regex; @@ -732,7 +733,9 @@ impl Tokens { /// Conv...
1
8
4
0a0893a76506518e766033d03f5b6d7c7a7a8525
Andrew Gallant
2024-05-27T18:53:19
ignore: add debug log message when opening gitignore file I'm not sure why it took me this long to add this debug message, but it's quite useful in determining where ignore rules are coming from.
diff --git a/crates/ignore/src/gitignore.rs b/crates/ignore/src/gitignore.rs index 0b667f2..19a347c 100644 --- a/crates/ignore/src/gitignore.rs +++ b/crates/ignore/src/gitignore.rs @@ -390,6 +390,7 @@ impl GitignoreBuilder { Err(err) => return Some(Error::Io(err).with_path(path)), Ok(file) => ...
1
1
0
f1d23c06e30606b2428a4e32da8f0b5069e81280
Andrew Gallant
2024-05-13T13:34:15
cli: add more logging for stdin heuristic detection Stdin heuristic detection is complicated and opaque enough that it's worth having easy access to the complete story that leads ripgrep to decide whether to search stdin or not. Ref #2806
diff --git a/crates/cli/src/lib.rs b/crates/cli/src/lib.rs index 643d796..b27592d 100644 --- a/crates/cli/src/lib.rs +++ b/crates/cli/src/lib.rs @@ -178,22 +178,71 @@ pub fn is_readable_stdin() -> bool { }; let stdin = std::io::stdin(); - let Ok(fd) = stdin.as_fd().try_clone_to_owned() else {...
1
55
6
22b677900f7ee74dcc0ec6791805120976d86168
tgolang
2024-05-13T11:44:51
doc: fix some typos PR #2754
diff --git a/crates/core/messages.rs b/crates/core/messages.rs index 2f72350..ba8b9ad 100644 --- a/crates/core/messages.rs +++ b/crates/core/messages.rs @@ -28,7 +28,7 @@ static ERRORED: AtomicBool = AtomicBool::new(false); /// /// This locks stdout, not stderr, even though this prints to stderr. This /// avoids the...
3
3
3
bb6f0f551972720792bd5bbd15035991a63dc472
NicoElbers
2024-05-11T11:02:24
doc: fix typo in --vimgrep help message PR #2802
diff --git a/crates/core/flags/defs.rs b/crates/core/flags/defs.rs index b5114e2..be85b90 100644 --- a/crates/core/flags/defs.rs +++ b/crates/core/flags/defs.rs @@ -7261,7 +7261,7 @@ impl Flag for Vimgrep { Category::Output } fn doc_short(&self) -> &'static str { - r"Print results im a vim com...
1
1
1
02b47b7469ac8fc9e7dcb390415644f33e500b72
Andrew Gallant
2024-04-23T14:43:25
deps: update everything Notably, this removes winapi in favor of windows-sys, as a result of winapi-util switching over to windows-sys[1]. Annoyingly, when PCRE2 is enabled, this brings in a dependency on `once_cell`[2]. I had worked to remove it from my dependencies and now it's back. Gah. I suppose I could disable ...
diff --git a/Cargo.lock b/Cargo.lock index 2abd586..cd6461d 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -13,9 +13,9 @@ dependencies = [ [[package]] name = "anyhow" -version = "1.0.81" +version = "1.0.82" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0952808a6c2afd1aa8947271f3a60f1a6...
1
99
41
d922b7ac114c24d6800ae5f79d2967481f380c83
redistay
2024-04-02T13:10:25
doc: fix typo PR #2776
diff --git a/crates/core/flags/parse.rs b/crates/core/flags/parse.rs index f1f2dcc..37a74b6 100644 --- a/crates/core/flags/parse.rs +++ b/crates/core/flags/parse.rs @@ -323,7 +323,7 @@ enum FlagLookup<'a> { UnrecognizedLong(String), } -/// The info about a flag associated with a flag's ID in the the flag map. +...
1
1
1
2acf25c6897f45c9e7332712cca63d4eb576533c
Linda_pp
2024-04-02T03:05:15
ignore/types: add WGSL to the default file types [WGSL][1] is a shading language for WebGPU. As defined in [Appendix A][2], the file extension is `.wgsl`. PR #2774 [1]: https://www.w3.org/TR/WGSL/ [2]: https://www.w3.org/TR/WGSL/#text-wgsl-media-type
diff --git a/crates/ignore/src/default_types.rs b/crates/ignore/src/default_types.rs index 2f03e5a..2cf8ad8 100644 --- a/crates/ignore/src/default_types.rs +++ b/crates/ignore/src/default_types.rs @@ -305,6 +305,7 @@ pub(crate) const DEFAULT_TYPES: &[(&[&str], &[&str])] = &[ ]), (&["vue"], &["*.vue"]), (...
1
1
0
80007698d3ae6c1def8ee784c6287ce1376de5c4
Vadim Kostin
2024-04-01T11:49:29
ignore/types: add Vue PR #2772
diff --git a/crates/ignore/src/default_types.rs b/crates/ignore/src/default_types.rs index ef18b76..2f03e5a 100644 --- a/crates/ignore/src/default_types.rs +++ b/crates/ignore/src/default_types.rs @@ -303,6 +303,7 @@ pub(crate) const DEFAULT_TYPES: &[(&[&str], &[&str])] = &[ (&["vimscript"], &[ "*.vim", "...
1
1
0
3ad0e83471588d8802d5747d0cc9accec76f7ccf
cgzones
2024-03-27T18:50:05
ignore/walk: correct build_parallel() documentation The returned closure should return `WalkState`, not `()`. Closes #2767
diff --git a/crates/ignore/src/walk.rs b/crates/ignore/src/walk.rs index a8d1718..d6ea9c2 100644 --- a/crates/ignore/src/walk.rs +++ b/crates/ignore/src/walk.rs @@ -591,7 +591,7 @@ impl WalkBuilder { /// /// Note that this *doesn't* return something that implements `Iterator`. /// Instead, the returned v...
1
1
1
eca13f08a2a0ece89a423565891e48a90a8aedef
Andrew Gallant
2024-03-24T22:58:28
deps: bump everything else
diff --git a/Cargo.lock b/Cargo.lock index 71dbb64..2abd586 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -4,18 +4,18 @@ version = 3 [[package]] name = "aho-corasick" -version = "1.1.2" +version = "1.1.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b2969dcb958b36655471fc61f7e416fa76...
1
10
10
4f99f82b1958f75d64cdb7c931190e39d67a3b17
Andrew Gallant
2024-03-24T22:58:06
deps: bump pcre2 and pcre2-sys This moves to PCRE2 10.43.
diff --git a/Cargo.lock b/Cargo.lock index 603bdcb..71dbb64 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -285,9 +285,9 @@ dependencies = [ [[package]] name = "pcre2" -version = "0.2.6" +version = "0.2.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4c9d53a8ea5fc3d3568d3de4bebc12606f...
1
4
4
9da0995df4cde892b899687c20b717c69b4ea0d1
Brent Williams
2024-03-19T17:36:08
ignore/types: add 'svelte' to the default file types Ref: https://svelte.dev/ PR #2759
diff --git a/crates/ignore/src/default_types.rs b/crates/ignore/src/default_types.rs index 329d541..ef18b76 100644 --- a/crates/ignore/src/default_types.rs +++ b/crates/ignore/src/default_types.rs @@ -265,6 +265,7 @@ pub(crate) const DEFAULT_TYPES: &[(&[&str], &[&str])] = &[ (&["sql"], &["*.sql", "*.psql"]), ...
1
1
0
9bd30e8e48b139c3f5ebe8587abff6fff7add45b
Andrew Gallant
2024-03-07T14:38:22
deps: update everything
diff --git a/Cargo.lock b/Cargo.lock index cb1065d..45f56f7 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -13,9 +13,9 @@ dependencies = [ [[package]] name = "anyhow" -version = "1.0.79" +version = "1.0.80" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "080e9890a082662b09c1ad45f567faeeb...
1
48
55
59212d08d3ef122adc781dfa09343df7848febf8
Andrew Gallant
2024-03-07T14:37:48
style: fix new lints The Rust compiler seems to have gotten smarter at finding unused or redundant imports.
diff --git a/crates/cli/src/wtr.rs b/crates/cli/src/wtr.rs index 44eb54d..e9cfb3b 100644 --- a/crates/cli/src/wtr.rs +++ b/crates/cli/src/wtr.rs @@ -1,6 +1,6 @@ use std::io::{self, IsTerminal}; -use termcolor::{self, HyperlinkSpec}; +use termcolor::HyperlinkSpec; /// A writer that supports coloring with either li...
9
5
12
6ebebb2aaa9991694aed10b944cf2e8196811e1c
SuperSpecialSweet
2024-02-22T11:57:58
doc: fix typo in comments PR #2741
diff --git a/crates/core/flags/hiargs.rs b/crates/core/flags/hiargs.rs index f7ab9ea..df09dce 100644 --- a/crates/core/flags/hiargs.rs +++ b/crates/core/flags/hiargs.rs @@ -484,9 +484,9 @@ impl HiArgs { if self.crlf { builder.crlf(true); } - // We don't need to set ...
1
2
2
e92e2ef8137a4333fee141f842e9a59b5da7b645
Andrew Gallant
2024-02-15T17:02:15
cli: remove stray `dbg!` Whoops, forgot to review my commits before pushing.
diff --git a/crates/cli/src/lib.rs b/crates/cli/src/lib.rs index 3cc6636..643d796 100644 --- a/crates/cli/src/lib.rs +++ b/crates/cli/src/lib.rs @@ -182,7 +182,6 @@ pub fn is_readable_stdin() -> bool { let file = File::from(fd); let Ok(md) = file.metadata() else { return false }; let ft = md....
1
0
1
4a30819302810a8772bd205970d41fe9b4e97333
Andrew Gallant
2024-02-15T16:59:59
cli: tweak how "is one file" predicate works In effect, we switch from `path.is_file()` to `!path.is_dir()`. In cases where process substitution is used, for example, the path can actually have type "fifo" instead of "file." Even if it's a fifo, we want to treat it as-if it were a file. The real key here is that we ba...
diff --git a/crates/cli/src/lib.rs b/crates/cli/src/lib.rs index 643d796..3cc6636 100644 --- a/crates/cli/src/lib.rs +++ b/crates/cli/src/lib.rs @@ -182,6 +182,7 @@ pub fn is_readable_stdin() -> bool { let file = File::from(fd); let Ok(md) = file.metadata() else { return false }; let ft = md....
2
11
1
9b42af96f0143a395b9379b6c761b5625367a3b9
Wilfred Hughes
2024-01-22T18:31:11
doc: fix typo in --hidden docs PR #2718
diff --git a/crates/core/flags/defs.rs b/crates/core/flags/defs.rs index 0abf0c9..b5114e2 100644 --- a/crates/core/flags/defs.rs +++ b/crates/core/flags/defs.rs @@ -2746,7 +2746,7 @@ impl Flag for Hidden { Search hidden files and directories. By default, hidden files and directories are skipped. Note that if a hidden...
1
1
1
44aa5a417d396ec75613c876e0eb5e4ba2f03b1d
Andrew Gallant
2024-01-06T19:28:28
deps: bump ignore to 0.4.22
diff --git a/Cargo.toml b/Cargo.toml index f30cc0b..1cfe6c0 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -52,7 +52,7 @@ members = [ anyhow = "1.0.75" bstr = "1.7.0" grep = { version = "0.3.1", path = "crates/grep" } -ignore = { version = "0.4.21", path = "crates/ignore" } +ignore = { version = "0.4.22", path = "crate...
1
1
1
2c3897585d3a6d0709954bc389bed3d957878048
Andrew Gallant
2024-01-06T19:27:44
ignore-0.4.22
diff --git a/Cargo.lock b/Cargo.lock index 6c45c46..c187ca0 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -215,7 +215,7 @@ dependencies = [ [[package]] name = "ignore" -version = "0.4.21" +version = "0.4.22" dependencies = [ "bstr", "crossbeam-channel", diff --git a/crates/ignore/Cargo.toml b/crates/ignore/Cargo...
2
2
2
6e9141a9ca39a7ffbb25bf0817d21895e486aacc
Andrew Gallant
2024-01-06T19:26:52
deps: update everything
diff --git a/Cargo.lock b/Cargo.lock index fc45d10..6c45c46 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -353,9 +353,9 @@ checksum = "69d3587f8a9e599cc7ec2c00e331f71c4e69a5f9a4b8a6efd5b07466b9736f9a" [[package]] name = "proc-macro2" -version = "1.0.75" +version = "1.0.76" source = "registry+https://github.com/rust-...
1
6
6
c8e4a84519ede79b330f9a9e2b072110d5bd0c8c
Andrew Gallant
2024-01-06T19:15:52
cli: prefix all non-fatal error messages with 'rg: ' Fixes #2694
diff --git a/crates/core/messages.rs b/crates/core/messages.rs index ea514c1..2f72350 100644 --- a/crates/core/messages.rs +++ b/crates/core/messages.rs @@ -39,21 +39,29 @@ macro_rules! eprintln_locked { // lock stdout before printing to stderr. This avoids interleaving // lines within ripgrep...
3
13
5
67dd809a8097923a721305ce0632a9fb9f19cb57
Andrew Gallant
2024-01-06T17:25:06
ignore: add some 'allow(dead_code)' annotations I don't usually like doing this and would prefer to just delete unused code, but I don't have the context required to understand why this code is unused. A refresh of this crate is on the (distant) horizon, so I'll just leave these here for now to squash the warnings.
diff --git a/crates/ignore/src/dir.rs b/crates/ignore/src/dir.rs index 51fc813..7f8ff10 100644 --- a/crates/ignore/src/dir.rs +++ b/crates/ignore/src/dir.rs @@ -34,11 +34,13 @@ use crate::{ /// IgnoreMatch represents information about where a match came from when using /// the `Ignore` matcher. #[derive(Clone, Debug...
2
4
0
6c2a550e1ed190351707dbcb28d5085a89ac0710
Andrew Gallant
2024-01-05T00:46:29
deps: update everything This drops a dependency on memoffset due to a crossbeam-epoch update. w00t.
diff --git a/Cargo.lock b/Cargo.lock index e02ac1d..fc45d10 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -13,9 +13,9 @@ dependencies = [ [[package]] name = "anyhow" -version = "1.0.75" +version = "1.0.79" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a4668cab20f66d8d020e1fbc0ebe47217...
1
28
38
8e8fc9c5039663bf0145d7ae292c4214da957d4f
Andrew Gallant
2024-01-05T00:44:28
deps: bump pcre2-sys to 0.2.8 This release contains some extra logic to disable the JIT on musleabi targets.
diff --git a/Cargo.lock b/Cargo.lock index 4c9857b..e02ac1d 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -346,9 +346,9 @@ dependencies = [ [[package]] name = "pcre2-sys" -version = "0.2.7" +version = "0.2.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8f8f5556f23cf2c0b481949fdfc19a...
1
2
2
3f2fe0afee0d1a1eeb3235904cfef4f35c4644dc
Andrew Gallant
2023-12-17T14:37:33
deps: update everything This also drops a dependency on scopeguard, courtesy of crossbeam-epoch dropping it. Not sure why they did, but fine by me.
diff --git a/Cargo.lock b/Cargo.lock index e77a283..4c9857b 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -52,9 +52,9 @@ checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd" [[package]] name = "crossbeam-channel" -version = "0.5.8" +version = "0.5.9" source = "registry+https://github.com/rus...
1
18
25
56c7ad175ac1326e8d36a880061ca3b0e67ad5ea
amesgen
2023-12-07T16:46:00
ignore/types: add Lean Ref: https://lean-lang.org/ PR #2678
diff --git a/crates/ignore/src/default_types.rs b/crates/ignore/src/default_types.rs index 04d2d96..329d541 100644 --- a/crates/ignore/src/default_types.rs +++ b/crates/ignore/src/default_types.rs @@ -118,6 +118,7 @@ pub(crate) const DEFAULT_TYPES: &[(&[&str], &[&str])] = &[ (&["jupyter"], &["*.ipynb", "*.jpynb"])...
1
1
0
2a4dba3fbfef944c562bcdfa7485fa0f70d4f86f
Patrick Williams
2023-11-30T00:03:12
ignore/types: add meson.options Starting with meson 1.1, there is a preference for using meson.options instead of meson_options.txt. Add the new filename to the meson set. PR #2666
diff --git a/crates/ignore/src/default_types.rs b/crates/ignore/src/default_types.rs index af71fe8..04d2d96 100644 --- a/crates/ignore/src/default_types.rs +++ b/crates/ignore/src/default_types.rs @@ -172,7 +172,7 @@ pub(crate) const DEFAULT_TYPES: &[(&[&str], &[&str])] = &[ "*.mdx", ]), (&["matlab"]...
1
1
1
9acb4a540508ca06b1bbb1bfbd6ef01f5bd3228d
Andrew Gallant
2023-11-28T02:37:41
deps: bump grep to 0.3.1
diff --git a/Cargo.toml b/Cargo.toml index 19cbb27..e7f252d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -51,7 +51,7 @@ members = [ [dependencies] anyhow = "1.0.75" bstr = "1.7.0" -grep = { version = "0.3.0", path = "crates/grep" } +grep = { version = "0.3.1", path = "crates/grep" } ignore = { version = "0.4.21", pa...
1
1
1
0096c74c1195956e893535f1f2919068daef1c2c
Andrew Gallant
2023-11-28T02:36:54
grep-0.3.1
diff --git a/Cargo.lock b/Cargo.lock index 3c1461d..c5591cd 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -134,7 +134,7 @@ dependencies = [ [[package]] name = "grep" -version = "0.3.0" +version = "0.3.1" dependencies = [ "grep-cli", "grep-matcher", diff --git a/crates/grep/Cargo.toml b/crates/grep/Cargo.toml ind...
2
2
2
8c48355b03ee514f4962d2c038a1be9704125c75
Andrew Gallant
2023-11-28T02:36:44
deps: bump grep-printer to 0.2.1
diff --git a/crates/grep/Cargo.toml b/crates/grep/Cargo.toml index 5228f19..d4eac4c 100644 --- a/crates/grep/Cargo.toml +++ b/crates/grep/Cargo.toml @@ -17,7 +17,7 @@ edition = "2021" grep-cli = { version = "0.1.10", path = "../cli" } grep-matcher = { version = "0.1.7", path = "../matcher" } grep-pcre2 = { version =...
1
1
1
f9b86de96322baea54711894ff917c0c4ec440fd
Andrew Gallant
2023-11-28T02:36:02
grep-printer-0.2.1
diff --git a/Cargo.lock b/Cargo.lock index 34f80d0..3c1461d 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -177,7 +177,7 @@ dependencies = [ [[package]] name = "grep-printer" -version = "0.2.0" +version = "0.2.1" dependencies = [ "bstr", "grep-matcher", diff --git a/crates/printer/Cargo.toml b/crates/printer/Carg...
2
2
2
d23b74975ab02dde74f0e9799fccc53013fe61c7
Andrew Gallant
2023-11-28T02:35:53
deps: bump grep-searcher to 0.1.13
diff --git a/crates/grep/Cargo.toml b/crates/grep/Cargo.toml index 0634bd9..5228f19 100644 --- a/crates/grep/Cargo.toml +++ b/crates/grep/Cargo.toml @@ -19,7 +19,7 @@ grep-matcher = { version = "0.1.7", path = "../matcher" } grep-pcre2 = { version = "0.1.7", path = "../pcre2", optional = true } grep-printer = { versi...
2
2
2
a5cbdb3dfe938a0fbe6f8e46f85f73eed0b2cd5e
Andrew Gallant
2023-11-28T02:34:58
grep-searcher-0.1.13
diff --git a/Cargo.lock b/Cargo.lock index 5a5c0a9..34f80d0 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -202,7 +202,7 @@ dependencies = [ [[package]] name = "grep-searcher" -version = "0.1.12" +version = "0.1.13" dependencies = [ "bstr", "encoding_rs", diff --git a/crates/searcher/Cargo.toml b/crates/searcher/...
2
2
2
b6bac8484e5466d332640c4022951061bb865329
Andrew Gallant
2023-11-28T02:31:03
cargo: add release-lto profile The idea is to build ripgrep with as much optimization as possible. This makes compilation times absolutely obscene. They jump from <10 seconds to 30+ seconds on my i9-12900K. I don't even want to know how long CI would take with these. I tried some ad hoc benchmarks and could not noti...
diff --git a/Cargo.toml b/Cargo.toml index d95858e..19cbb27 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -74,6 +74,18 @@ pcre2 = ["grep/pcre2"] [profile.release] debug = 1 +[profile.release-lto] +inherits = "release" +opt-level = 3 +debug = "none" +strip = "symbols" +debug-assertions = false +overflow-checks = false...
1
12
0
625743d7c833023c7a196b26650cba4dba6cdb48
Andrew Gallant
2023-11-26T20:24:09
grep-0.3.0
diff --git a/Cargo.lock b/Cargo.lock index 30b81ed..a9818d0 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -134,7 +134,7 @@ dependencies = [ [[package]] name = "grep" -version = "0.2.13" +version = "0.3.0" dependencies = [ "grep-cli", "grep-matcher", diff --git a/Cargo.toml b/Cargo.toml index 51b080c..ca7f645 100...
3
3
3
3d0171040a684533b8ba41cdfc030870d753eb4f
Andrew Gallant
2023-11-26T20:21:40
grep-printer-0.2.0
diff --git a/Cargo.lock b/Cargo.lock index a2575af..30b81ed 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -177,7 +177,7 @@ dependencies = [ [[package]] name = "grep-printer" -version = "0.1.7" +version = "0.2.0" dependencies = [ "bstr", "grep-matcher", diff --git a/crates/grep/Cargo.toml b/crates/grep/Cargo.toml...
3
3
3
9c4b0baf1019ba3b21bc2ba03f7ef7af2c925470
Andrew Gallant
2023-11-26T19:18:53
deps: bump grep to 0.2.13
diff --git a/Cargo.toml b/Cargo.toml index df6057e..ffb6242 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -51,7 +51,7 @@ members = [ [dependencies] anyhow = "1.0.75" bstr = "1.7.0" -grep = { version = "0.2.12", path = "crates/grep" } +grep = { version = "0.2.13", path = "crates/grep" } ignore = { version = "0.4.21", ...
1
1
1
179487aaed881a2f6a808a73ed7c11996da81d60
Andrew Gallant
2023-11-26T19:18:17
grep-0.2.13
diff --git a/Cargo.lock b/Cargo.lock index a1c06fd..15c1205 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -134,7 +134,7 @@ dependencies = [ [[package]] name = "grep" -version = "0.2.12" +version = "0.2.13" dependencies = [ "grep-cli", "grep-matcher", diff --git a/crates/grep/Cargo.toml b/crates/grep/Cargo.toml i...
2
2
2
b407d62b6370af1e9265d93e81d3972e411a29d4
Andrew Gallant
2023-11-26T19:18:03
deps: bump grep-searcher to 0.1.12
diff --git a/crates/grep/Cargo.toml b/crates/grep/Cargo.toml index a8ed56d..a146545 100644 --- a/crates/grep/Cargo.toml +++ b/crates/grep/Cargo.toml @@ -19,7 +19,7 @@ grep-matcher = { version = "0.1.7", path = "../matcher" } grep-pcre2 = { version = "0.1.7", path = "../pcre2", optional = true } grep-printer = { versi...
2
2
2
9bd1e737bcd19471d8837bec9c34143fdfa61fb2
Andrew Gallant
2023-11-26T19:17:26
grep-searcher-0.1.12
diff --git a/Cargo.lock b/Cargo.lock index 1233d15..a1c06fd 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -202,7 +202,7 @@ dependencies = [ [[package]] name = "grep-searcher" -version = "0.1.11" +version = "0.1.12" dependencies = [ "bstr", "encoding_rs", diff --git a/crates/searcher/Cargo.toml b/crates/searcher/...
2
2
2
c12231c6219cf86724c885c8d204b77996d76fe3
Andrew Gallant
2023-11-26T19:17:11
deps: bump grep-pcre2 to 0.1.7
diff --git a/crates/grep/Cargo.toml b/crates/grep/Cargo.toml index 2c6345f..a8ed56d 100644 --- a/crates/grep/Cargo.toml +++ b/crates/grep/Cargo.toml @@ -16,7 +16,7 @@ edition = "2021" [dependencies] grep-cli = { version = "0.1.10", path = "../cli" } grep-matcher = { version = "0.1.7", path = "../matcher" } -grep-pcr...
1
1
1
b0df573834ce5e421b9c362ff4437342e02d61e5
Andrew Gallant
2023-11-26T19:16:46
grep-pcre2-0.1.7
diff --git a/Cargo.lock b/Cargo.lock index 85000f2..1233d15 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -168,7 +168,7 @@ dependencies = [ [[package]] name = "grep-pcre2" -version = "0.1.6" +version = "0.1.7" dependencies = [ "grep-matcher", "log", diff --git a/crates/pcre2/Cargo.toml b/crates/pcre2/Cargo.toml ...
2
2
2
85b2ceecd1830ad35472e5e3fcdab1d29dd56a0a
Andrew Gallant
2023-11-26T19:16:31
deps: bump grep-regex to 0.1.12
diff --git a/crates/grep/Cargo.toml b/crates/grep/Cargo.toml index b1d8b96..2c6345f 100644 --- a/crates/grep/Cargo.toml +++ b/crates/grep/Cargo.toml @@ -18,7 +18,7 @@ grep-cli = { version = "0.1.10", path = "../cli" } grep-matcher = { version = "0.1.7", path = "../matcher" } grep-pcre2 = { version = "0.1.6", path = "...
3
3
3
fee7ac79f11e05640c5609a825ed6d1359cae472
Andrew Gallant
2023-11-26T19:15:44
grep-regex-0.1.12
diff --git a/Cargo.lock b/Cargo.lock index 1d07521..85000f2 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -191,7 +191,7 @@ dependencies = [ [[package]] name = "grep-regex" -version = "0.1.11" +version = "0.1.12" dependencies = [ "bstr", "grep-matcher", diff --git a/crates/regex/Cargo.toml b/crates/regex/Cargo.to...
2
2
2
54d5540c10e485346150ad63e6a1fe8ad705e2f4
Andrew Gallant
2023-11-26T19:15:34
deps: bump grep-matcher to 0.1.7
diff --git a/crates/grep/Cargo.toml b/crates/grep/Cargo.toml index 0b18937..b1d8b96 100644 --- a/crates/grep/Cargo.toml +++ b/crates/grep/Cargo.toml @@ -15,7 +15,7 @@ edition = "2021" [dependencies] grep-cli = { version = "0.1.10", path = "../cli" } -grep-matcher = { version = "0.1.6", path = "../matcher" } +grep-m...
5
5
5
d0251c77fe96412310110aeb9383f20436a9f97e
Andrew Gallant
2023-11-26T19:13:54
grep-matcher-0.1.7
diff --git a/Cargo.lock b/Cargo.lock index 0cbd624..1d07521 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -160,7 +160,7 @@ dependencies = [ [[package]] name = "grep-matcher" -version = "0.1.6" +version = "0.1.7" dependencies = [ "memchr", "regex", diff --git a/crates/matcher/Cargo.toml b/crates/matcher/Cargo.tom...
2
2
2
6aa5993d4b0a0a84c45d2de885407b588f84faa5
Andrew Gallant
2023-11-26T19:13:40
deps: bump grep-cli to 0.1.10
diff --git a/crates/grep/Cargo.toml b/crates/grep/Cargo.toml index 5e9fd99..0b18937 100644 --- a/crates/grep/Cargo.toml +++ b/crates/grep/Cargo.toml @@ -14,7 +14,7 @@ license = "Unlicense OR MIT" edition = "2021" [dependencies] -grep-cli = { version = "0.1.7", path = "../cli" } +grep-cli = { version = "0.1.10", pat...
1
1
1
6f78d211bf2f2622fb7fbb4fb5af044e36a167da
Andrew Gallant
2023-11-26T19:13:03
grep-cli-0.1.10
diff --git a/Cargo.lock b/Cargo.lock index e6f6150..0cbd624 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -148,7 +148,7 @@ dependencies = [ [[package]] name = "grep-cli" -version = "0.1.9" +version = "0.1.10" dependencies = [ "bstr", "globset", diff --git a/crates/cli/Cargo.toml b/crates/cli/Cargo.toml index 075...
2
2
2
51aa33983032e40c45c9077a375c698dac375aaf
Andrew Gallant
2023-11-26T19:12:55
deps: bump ignore to 0.4.21
diff --git a/Cargo.toml b/Cargo.toml index 90c6ae8..df6057e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -52,7 +52,7 @@ members = [ anyhow = "1.0.75" bstr = "1.7.0" grep = { version = "0.2.12", path = "crates/grep" } -ignore = { version = "0.4.19", path = "crates/ignore" } +ignore = { version = "0.4.21", path = "crat...
1
1
1
381c521d02e26f86d69fbbec6e697a4609bea056
Andrew Gallant
2023-11-26T19:12:16
ignore-0.4.21
diff --git a/Cargo.lock b/Cargo.lock index 3a1d1d7..e6f6150 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -217,7 +217,7 @@ dependencies = [ [[package]] name = "ignore" -version = "0.4.20" +version = "0.4.21" dependencies = [ "bstr", "crossbeam-channel", diff --git a/crates/ignore/Cargo.toml b/crates/ignore/Cargo...
2
2
2
57495db10eb36f7c4d012eb27cf8674de384d57c
Andrew Gallant
2023-11-26T19:11:43
deps: bump globset to 0.4.14
diff --git a/crates/cli/Cargo.toml b/crates/cli/Cargo.toml index 8e576b6..075274f 100644 --- a/crates/cli/Cargo.toml +++ b/crates/cli/Cargo.toml @@ -15,7 +15,7 @@ edition = "2021" [dependencies] bstr = { version = "1.6.2", features = ["std"] } -globset = { version = "0.4.10", path = "../globset" } +globset = { vers...
2
2
2
47e37175ca96e33a0ca62ef77050e3f78a8e0f04
Andrew Gallant
2023-11-26T19:11:05
globset-0.4.14
diff --git a/Cargo.lock b/Cargo.lock index 6ad7cd9..3a1d1d7 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -120,7 +120,7 @@ checksum = "d2fabcfbdc87f4758337ca535fb41a6d701b65693ce38287d856d1674551ec9b" [[package]] name = "globset" -version = "0.4.13" +version = "0.4.14" dependencies = [ "aho-corasick", "bstr", di...
2
2
2
9b5091b895106a2458eadbda1e19329a346e8eff
Andrew Gallant
2023-11-26T18:31:31
deps: bump to memmap2 0.9.0
diff --git a/Cargo.lock b/Cargo.lock index c9266ff..6ad7cd9 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -298,9 +298,9 @@ checksum = "f665ee40bc4a3c5590afb1e9677db74a508659dfd71e126420da8274909a0167" [[package]] name = "memmap2" -version = "0.8.0" +version = "0.9.0" source = "registry+https://github.com/rust-lang/c...
2
3
3
a4f165e3abb0b9de2971be6c4c9493f1769408ba
Andrew Gallant
2023-11-26T18:28:30
deps: bump everything
diff --git a/Cargo.lock b/Cargo.lock index 9d403c4..c9266ff 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -25,9 +25,9 @@ checksum = "d468802bab17cbc0cc575e9b053f41e72aa36bfa6b7f55e3529ffa43161b97fa" [[package]] name = "bstr" -version = "1.7.0" +version = "1.8.0" source = "registry+https://github.com/rust-lang/crates...
1
10
10
d1def67000194585e1bdafa8571ef6fcec64d63e
Andrew Gallant
2023-11-26T18:28:01
deps: bump pcre2 to 0.2.6
diff --git a/Cargo.lock b/Cargo.lock index 69d7c9e..9d403c4 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -336,9 +336,9 @@ dependencies = [ [[package]] name = "pcre2" -version = "0.2.5" +version = "0.2.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9deb1d02d6a373ee392128ba86087352a9...
2
5
5
56af4d4a7444bfc15bfb3d6cd0202f4fb3076e90
Andrew Gallant
2023-11-26T14:55:44
cli: add simple flag suggestions We look for similar flag names via Jaccard index on ngrams. In my experience this tends to work better than Levenshtein or other edit distance based metrics. Principally because it allows for out-of-order suggestions. For example, --case-smart will result in a suggestion for --smart-ca...
diff --git a/crates/core/flags/parse.rs b/crates/core/flags/parse.rs index 8151110..f1f2dcc 100644 --- a/crates/core/flags/parse.rs +++ b/crates/core/flags/parse.rs @@ -2,7 +2,7 @@ Parses command line arguments into a structured and typed representation. */ -use std::ffi::OsString; +use std::{borrow::Cow, collectio...
1
86
2
e0075232291bd4043202844719e755f5980a4cc8
Andrew Gallant
2023-11-25T19:08:30
doc: note the precedence of -t/--type Fixes #1635
diff --git a/crates/core/flags/defs.rs b/crates/core/flags/defs.rs index 68b0aaa..5e76e45 100644 --- a/crates/core/flags/defs.rs +++ b/crates/core/flags/defs.rs @@ -6773,6 +6773,9 @@ any custom file types). The end result is that \fB\-\-type=all\fP causes ripgrep to search in "whitelist" mode, where it will only searc...
1
3
0
b138d5740a0e723a84014ce41614a30c44866baa
Andrew Gallant
2023-11-24T20:05:47
log: add message about number of threads used Closes #2122
diff --git a/crates/core/flags/hiargs.rs b/crates/core/flags/hiargs.rs index 555c8bd..41a6bc2 100644 --- a/crates/core/flags/hiargs.rs +++ b/crates/core/flags/hiargs.rs @@ -171,6 +171,7 @@ impl HiArgs { } else { std::thread::available_parallelism().map_or(1, |n| n.get()).min(12) }; + ...
1
1
0
ae2a09915fe9d3b4308a2b6e5710b583d22f165d
Andrew Gallant
2023-11-21T18:35:45
printer: drop dependency on `base64` crate Instead, we just roll our own. A slow version of this is pretty simple to do, and that's what we write here. The `base64` crate supports a lot more functionality and is quite fast, but we care about neither of those things for this particular aspect of ripgrep. (base64 is onl...
diff --git a/Cargo.lock b/Cargo.lock index 6c36cd8..69d7c9e 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -23,12 +23,6 @@ version = "1.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d468802bab17cbc0cc575e9b053f41e72aa36bfa6b7f55e3529ffa43161b97fa" -[[package]] -name = "base64" -vers...
3
77
12
9c84575229131239f92149cd5790ddb553d7eea8
Andrew Gallant
2023-11-21T17:40:45
printer: drop dependency on serde_derive As suggested by @epage[1]. Ad hoc timings on my i7-12900K: before cargo build: 4.91s before cargo build release: 8.05s after cargo build: 4.69s after cargo build release: 7.83s ... pretty underwhelming if you ask me. Ah well. And on my M2 mac mini: befor...
diff --git a/Cargo.lock b/Cargo.lock index d4f58dc..6c36cd8 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -192,7 +192,6 @@ dependencies = [ "grep-searcher", "log", "serde", - "serde_derive", "serde_json", "termcolor", ] diff --git a/crates/printer/Cargo.toml b/crates/printer/Cargo.toml index 4193d3d..10537c5 1...
5
202
108
cddb5f57f8fa3413a6210bdd3a8f687b7dac69b2
Andrew Gallant
2023-11-21T13:10:04
printer: rejigger how we use serde_derive The idea is that by bringing derives in via serde's optional feature, it was inhibiting compilation speed[1]. We try to fix that by depending on `serde_derive` as a distinct dependency. It does seem to improve overall compilation time, but only by about 0.5 seconds. With that...
diff --git a/Cargo.lock b/Cargo.lock index 439099b..d4f58dc 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -192,6 +192,7 @@ dependencies = [ "grep-searcher", "log", "serde", + "serde_derive", "serde_json", "termcolor", ] @@ -458,18 +459,18 @@ checksum = "94143f37725109f92c262ed2cf5e59bce7498c01bcc1502d7b9afe439...
4
12
11
c81caa673b743bdac04db75c32957200bf549695
Andrew Gallant
2023-11-21T12:40:56
core: fix file separator bug I introduced a regression in the migration off of the clap by having both the buffer writer and the printer be responsible for printing file separators in multi-threaded search. The buffer writer owns that responsibility in multi-threaded search.
diff --git a/crates/core/flags/hiargs.rs b/crates/core/flags/hiargs.rs index 4f3b3f3..b4e0c09 100644 --- a/crates/core/flags/hiargs.rs +++ b/crates/core/flags/hiargs.rs @@ -592,7 +592,8 @@ impl HiArgs { &self, wtr: W, ) -> grep::printer::Standard<W> { - grep::printer::StandardBuilder::new(...
1
12
4
824778c009165d5b56f97aad1b824a2bca039c08
Jonas Platte
2023-10-16T21:55:22
globset: add GlobSet::builder This avoids needing to import and call GlobSetBuilder::new explicitly. Closes #2635
diff --git a/crates/globset/src/lib.rs b/crates/globset/src/lib.rs index fb1f27c..b1fc696 100644 --- a/crates/globset/src/lib.rs +++ b/crates/globset/src/lib.rs @@ -304,6 +304,14 @@ pub struct GlobSet { } impl GlobSet { + /// Create a new [`GlobSetBuilder`]. A `GlobSetBuilder` can be used to add + /// new pat...
1
10
2
538ba956dc00b4317d0f40dc6324c31e9e1c40a9
Andrew Gallant
2023-10-16T22:12:59
deps: bump regex and regex-automata
diff --git a/Cargo.lock b/Cargo.lock index 1a9465e..3becb92 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -401,9 +401,9 @@ dependencies = [ [[package]] name = "regex" -version = "1.10.1" +version = "1.10.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "aaac441002f822bc9705a681810a4dd2...
1
4
4
443c057042f42f3a9ee5a9be07f49862aa8052b9
Andrew Gallant
2023-10-14T15:12:27
deps: bump regex, regex-automata and regex-syntax
diff --git a/Cargo.lock b/Cargo.lock index 472b561..1a9465e 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -401,9 +401,9 @@ dependencies = [ [[package]] name = "regex" -version = "1.10.0" +version = "1.10.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d119d7c7ca818f8a53c300863d4f8756...
1
6
6
5b88515faf67b1a9e5541a2130a6bebf3bd21c89
Andrew Gallant
2023-10-14T13:31:19
build: a bit of clean-up This does just a smidge of polishing in the build script source code.
diff --git a/build.rs b/build.rs index 80cf273..eae7f85 100644 --- a/build.rs +++ b/build.rs @@ -1,12 +1,14 @@ -use std::env; -use std::fs::{self, File}; -use std::io::{self, Read, Write}; -use std::path::Path; -use std::process; +use std::{ + env, + fs::{self, File}, + io::{self, Read, Write}, + path::Path...
1
24
26