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 |
|---|---|---|---|---|---|---|---|
e300355afeb076841aaafa6b9289943d58e269b5 | David | 2024-07-26T18:31:14 | doc: correct span format example regex
PR #49 | diff --git a/src/fmt/temporal/mod.rs b/src/fmt/temporal/mod.rs
index 074acea..c60174f 100644
--- a/src/fmt/temporal/mod.rs
+++ b/src/fmt/temporal/mod.rs
@@ -61,7 +61,7 @@ To a first approximation, the span format supported roughly corresponds to this
regular expression:
```text
-P(\d+y)?(\d+m)?(\d+w)?(\d+d)?(T(\d+h... | 1 | 1 | 1 |
93f66f067a4c00e37f23c5058906f696d0a3d87a | Andrew Gallant | 2024-07-26T00:05:36 | span: add Span::to_duration and TryFrom impls for Duration
This PR dips our toes into the water of integration with
`std::time::Duration`. I do somewhat expect there to be more integration
points, particularly in the datetime arithmetic APIs, but this at least
paves a path for folks to _correctly_ convert between a `D... | diff --git a/src/span.rs b/src/span.rs
index 317a5d8..df11ea9 100644
--- a/src/span.rs
+++ b/src/span.rs
@@ -1,4 +1,4 @@
-use core::cmp::Ordering;
+use core::{cmp::Ordering, time::Duration};
use alloc::borrow::Cow;
@@ -456,6 +456,101 @@ use crate::{
///
/// # Ok::<(), Box<dyn std::error::Error>>(())
/// ```
+//... | 1 | 459 | 1 |
10fad4d86269d95a3e2dead5589ffeb13cabcb08 | Andrew Gallant | 2024-07-26T00:01:20 | civil: add 'until' month test
This test comes from a [bug report to Temporal]. We assert the result we
get, and this also matches what Temporal does. But it does seem wrong to
me IMO. We defer fixing it for now and leave it be to be consistent with
Temporal.
[bug report to Temporal]: https://github.com/tc39/proposal-... | diff --git a/src/civil/date.rs b/src/civil/date.rs
index 63dae09..47ef6a7 100644
--- a/src/civil/date.rs
+++ b/src/civil/date.rs
@@ -3540,7 +3540,7 @@ fn day_of_year(year: Year, day: i16) -> Result<Date, Error> {
#[cfg(test)]
mod tests {
- use crate::{tz::TimeZone, Timestamp, ToSpan};
+ use crate::{civil::dat... | 1 | 16 | 1 |
99f163a7b5092ffa0aac4fe1c4657c16afd1510c | Andrew Gallant | 2024-07-25T23:56:29 | bench: do some benchmark cleanups
There were a few benchmarks where I was doing `timestamp()` comparisons
unnecessarily. It was probably a transcription error. There is one
benchmark though where it is intentional.
Also, we used the `well_known` ISO 8601 format for `time` when parsing
civil datetimes. There is a sign... | diff --git a/bench/src/bench.rs b/bench/src/bench.rs
index 9b1444b..ebd5db8 100644
--- a/bench/src/bench.rs
+++ b/bench/src/bench.rs
@@ -283,15 +283,15 @@ fn offset_to_civil_datetime(c: &mut Criterion) {
}
}
-/// This benchmarks the time it takes to get a precise instant in time from
-/// a library's zone-aware... | 1 | 23 | 29 |
7f1d3c39da5ee129135d9fef64e1dedbb9912cf1 | Andrew Gallant | 2024-07-24T21:16:39 | fmt/rfc2822: note completeness
Fixes #39 | diff --git a/src/fmt/rfc2822.rs b/src/fmt/rfc2822.rs
index 423e681..fa1c35b 100644
--- a/src/fmt/rfc2822.rs
+++ b/src/fmt/rfc2822.rs
@@ -10,6 +10,23 @@ inexact time, you can get it from [`Zoned`] via [`Zoned::datetime`].
[RFC 2822]: https://datatracker.ietf.org/doc/html/rfc2822
+# Incomplete support
+
+The RFC 282... | 1 | 17 | 0 |
a083a2700a2a55fe315cf56a1b8b002beee8b3bf | Andrew Gallant | 2024-07-23T17:56:10 | bench: add benchmark for printing a civil datetime | diff --git a/bench/src/bench.rs b/bench/src/bench.rs
index 82d8954..9b1444b 100644
--- a/bench/src/bench.rs
+++ b/bench/src/bench.rs
@@ -423,6 +423,26 @@ fn parse_civil_datetime(c: &mut Criterion) {
});
}
+/// Benchmarks the amount of time it takes to print a civil datetime.
+///
+/// This attempts to use the f... | 1 | 21 | 0 |
8a8c606a12e6f6b0cd7d24ebe1fffea2cf9ab84b | Andrew Gallant | 2024-07-22T01:23:18 | deps: bump jiff-tzdb-platform | diff --git a/Cargo.toml b/Cargo.toml
index 6f8488e..98ba350 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -64,7 +64,7 @@ serde = { version = "1.0.203", optional = true }
# is enabled by default, but that the `tzdb-bundle-platform` crate is only
# actually used on platforms without a system tzdb (i.e., Windows).
[targe... | 1 | 1 | 1 |
03f95cf36d4a5d4e766f9a78ee4ec95e4672215a | Andrew Gallant | 2024-07-22T01:22:56 | jiff-tzdb-platform-0.1.0 | diff --git a/jiff-tzdb-platform/Cargo.toml b/jiff-tzdb-platform/Cargo.toml
index 4350402..99073eb 100644
--- a/jiff-tzdb-platform/Cargo.toml
+++ b/jiff-tzdb-platform/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "jiff-tzdb-platform"
-version = "0.0.1" #:version
+version = "0.1.0" #:version
authors = ["Andrew Gallant... | 1 | 1 | 1 |
885e18777061e8f87e8bca556a3b50f8e04969c0 | Andrew Gallant | 2024-07-22T01:22:42 | deps: bump jiff-tzdb | diff --git a/Cargo.toml b/Cargo.toml
index 8220702..6f8488e 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -55,7 +55,7 @@ tzdb-bundle-always = ["dep:jiff-tzdb", "alloc"]
tzdb-zoneinfo = ["std"]
[dependencies]
-jiff-tzdb = { version = "0.0.1", path = "jiff-tzdb", optional = true }
+jiff-tzdb = { version = "0.1.0", path... | 2 | 2 | 2 |
8cf5a1dd6dd2880fb2b999134def88fd7a22d82c | Andrew Gallant | 2024-07-22T01:21:56 | jiff-tzdb-0.1.0 | diff --git a/jiff-tzdb/Cargo.toml b/jiff-tzdb/Cargo.toml
index b1d3541..c962c6e 100644
--- a/jiff-tzdb/Cargo.toml
+++ b/jiff-tzdb/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "jiff-tzdb"
-version = "0.0.1" #:version
+version = "0.1.0" #:version
authors = ["Andrew Gallant <jamslam@gmail.com>"]
license = "Unlicense ... | 1 | 1 | 1 |
6c1b4d13cbf1e53a91f552152b79a7123fb26ee2 | Andrew Gallant | 2024-07-22T01:11:50 | cargo: prepare for release | diff --git a/Cargo.toml b/Cargo.toml
index cb70dfa..8220702 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,12 +1,17 @@
[package]
name = "jiff"
-version = "0.1.0" #:version
+version = "0.0.1" #:version
authors = ["Andrew Gallant <jamslam@gmail.com>"]
-description = "WIP"
license = "Unlicense OR MIT"
repository = ... | 3 | 14 | 7 |
4c3ddbd6e2d9b739048121e93e148b453cc96c4b | Andrew Gallant | 2024-07-22T00:51:39 | tests: add more checks for tzdb support | diff --git a/tests/tc39_262/span/round.rs b/tests/tc39_262/span/round.rs
index 6f51277..7a45948 100644
--- a/tests/tc39_262/span/round.rs
+++ b/tests/tc39_262/span/round.rs
@@ -107,6 +107,10 @@ fn calendar_possibly_required() -> Result {
/// Source: https://github.com/tc39/test262/blob/29c6f7028a683b8259140e7d6352ae0c... | 2 | 20 | 0 |
e00939aa6f43ea55ae02f653bfb8097734555aa6 | Andrew Gallant | 2024-07-22T00:46:38 | tests: bail when tzdb isn't available
tzdb isn't always available when running tests, so bail out in
those cases. | diff --git a/src/fmt/rfc2822.rs b/src/fmt/rfc2822.rs
index e61f074..423e681 100644
--- a/src/fmt/rfc2822.rs
+++ b/src/fmt/rfc2822.rs
@@ -1543,6 +1543,10 @@ mod tests {
#[test]
fn ok_print_zoned() {
+ if crate::tz::db().is_definitively_empty() {
+ return;
+ }
+
let p = |zdt:... | 2 | 24 | 0 |
e09bd884dfc06f3b36c1092565e06f52a5d5d9b1 | Victor Lopez | 2023-03-06T11:17:43 | chore: remove unrelated categories | diff --git a/Cargo.toml b/Cargo.toml
index 021bd53..0c68a8d 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -2,7 +2,7 @@
name = "endian-type"
version = "0.1.3"
authors = ["Lolirofle <lolipopple@hotmail.com>"]
-categories = ["compression", "encoding", "parser-implementations"]
+categories = ["encoding"]
edition = "2021"... | 1 | 1 | 1 |
afa6310369ee0e339776447b3d93f733d2af1d2f | Lolirofle | 2015-07-27T15:11:44 | Lesser dependencies | diff --git a/Cargo.toml b/Cargo.toml
index e0cc62b..de42fea 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,14 +1,11 @@
[package]
name = "endian-type"
-version = "0.1.0"
+version = "0.1.1"
authors = ["Lolirofle <lolipopple@hotmail.com>"]
-description = "Wrappers for types with a defined byte order"
+description = "Ty... | 2 | 52 | 64 |
cb66736f146f093497f4dc537b33d0826f9af33c | Andrew Gallant | 2026-02-20T21:06:29 | core: bleat a DEBUG message when RIPGREP_CONFIG_PATH is not set
It seems to be common that folks either don't understand how to set
environment variables in a way that propagates to subprocesses, or just
forget to include `export` and think ripgrep is somehow broken.
While `RIPGREP_CONFIG_PATH` not being set is not a... | diff --git a/crates/core/flags/config.rs b/crates/core/flags/config.rs
index 313244f..c49716e 100644
--- a/crates/core/flags/config.rs
+++ b/crates/core/flags/config.rs
@@ -15,7 +15,13 @@ use bstr::{ByteSlice, io::BufReadExt};
/// Return a sequence of arguments derived from ripgrep rc configuration files.
pub fn args... | 1 | 7 | 1 |
9b84e154c8e404f4c40f6f4e4c674ea02e77324a | Pavel Knoblokh | 2026-02-13T01:39:46 | ignore/types: add `container` type that covers both `Dockerfile` and `Containerfile`
PR #3271 | diff --git a/crates/ignore/src/default_types.rs b/crates/ignore/src/default_types.rs
index de63978..f3c2955 100644
--- a/crates/ignore/src/default_types.rs
+++ b/crates/ignore/src/default_types.rs
@@ -47,6 +47,7 @@ pub(crate) const DEFAULT_TYPES: &[(&[&str], &[&str])] = &[
(&["cml"], &["*.cml"]),
(&["coffeesc... | 1 | 1 | 0 |
0a88cccd5188074de96f54a4b6b44a63971ac157 | Sungjoon Moon | 2025-12-17T16:38:12 | Fix compression tests in QEMU cross-compilation environments (#3248)
* tests: fix cmd_exists for QEMU environments
QEMU user-mode has a bug where posix_spawn returns success even when
the command doesn't exist. The child exits with 127, but the parent
thinks it succeeded.
Change cmd_exists to check if the command ac... | diff --git a/tests/misc.rs b/tests/misc.rs
index df79e95..aae84da 100644
--- a/tests/misc.rs
+++ b/tests/misc.rs
@@ -922,8 +922,6 @@ be, to a very large extent, the result of luck. Sherlock Holmes
eqnice!(expected, cmd.stdout());
});
-// lz4 decompression tool doesn't work under RISC-V QEMU emulation in CI
-#[c... | 2 | 4 | 7 |
cd1f981beafaeb9b61537e47e91314cea125400b | xtqqczze | 2025-11-29T19:11:38 | fix: derive `Default` when possible
Ref https://rust-lang.github.io/rust-clippy/master/index.html#/derivable_impls | diff --git a/crates/core/flags/lowargs.rs b/crates/core/flags/lowargs.rs
index 184c96a..1941cae 100644
--- a/crates/core/flags/lowargs.rs
+++ b/crates/core/flags/lowargs.rs
@@ -229,13 +229,14 @@ pub(crate) enum GenerateMode {
}
/// Indicates how ripgrep should treat binary data.
-#[derive(Debug, Eq, PartialEq)]
+#[... | 1 | 14 | 49 |
57c190d56eedac90c061a238b63dbfed434fee50 | Andrew Gallant | 2025-10-30T17:30:14 | ignore-0.4.25 | diff --git a/Cargo.lock b/Cargo.lock
index 7f7ef84..560207a 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -242,7 +242,7 @@ dependencies = [
[[package]]
name = "ignore"
-version = "0.4.24"
+version = "0.4.25"
dependencies = [
"bstr",
"crossbeam-channel",
diff --git a/crates/ignore/Cargo.toml b/crates/ignore/Cargo... | 2 | 2 | 2 |
a63671efb069bbef88a4426b08d45508af716514 | Andrew Gallant | 2025-10-22T12:29:19 | deps: bump to grep 0.4.1 | diff --git a/Cargo.toml b/Cargo.toml
index 4e0fe73..2b42d7c 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -52,7 +52,7 @@ members = [
[dependencies]
anyhow = "1.0.75"
bstr = "1.7.0"
-grep = { version = "0.4.0", path = "crates/grep" }
+grep = { version = "0.4.1", path = "crates/grep" }
ignore = { version = "0.4.24", pa... | 1 | 1 | 1 |
2ea06d69aaff19d53a0260f271a30cc28a39f1de | Andrew Gallant | 2025-10-22T12:28:53 | grep-0.4.1 | diff --git a/Cargo.lock b/Cargo.lock
index cbf9954..0a00e5b 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -159,7 +159,7 @@ dependencies = [
[[package]]
name = "grep"
-version = "0.4.0"
+version = "0.4.1"
dependencies = [
"grep-cli",
"grep-matcher",
diff --git a/crates/grep/Cargo.toml b/crates/grep/Cargo.toml
ind... | 2 | 2 | 2 |
85006b08d63efd7c7f2cc43a3b8e90d95b80a9aa | Andrew Gallant | 2025-10-22T12:28:32 | deps: bump to grep-printer 0.3.1 | diff --git a/crates/grep/Cargo.toml b/crates/grep/Cargo.toml
index e483211..1e91947 100644
--- a/crates/grep/Cargo.toml
+++ b/crates/grep/Cargo.toml
@@ -17,7 +17,7 @@ edition = "2024"
grep-cli = { version = "0.1.12", path = "../cli" }
grep-matcher = { version = "0.1.8", path = "../matcher" }
grep-pcre2 = { version =... | 1 | 1 | 1 |
423afb851372ce62a9edab70356ebe6461e82a50 | Andrew Gallant | 2025-10-22T12:28:06 | grep-printer-0.3.1 | diff --git a/Cargo.lock b/Cargo.lock
index b4d7b22..cbf9954 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -202,7 +202,7 @@ dependencies = [
[[package]]
name = "grep-printer"
-version = "0.3.0"
+version = "0.3.1"
dependencies = [
"bstr",
"grep-matcher",
diff --git a/crates/printer/Cargo.toml b/crates/printer/Carg... | 2 | 2 | 2 |
4694800be58daa9e2ca9534f674b63254eb02b3b | Andrew Gallant | 2025-10-22T12:26:22 | deps: bump to grep-searcher 0.1.16 | diff --git a/crates/grep/Cargo.toml b/crates/grep/Cargo.toml
index 47712e6..e483211 100644
--- a/crates/grep/Cargo.toml
+++ b/crates/grep/Cargo.toml
@@ -19,7 +19,7 @@ grep-matcher = { version = "0.1.8", path = "../matcher" }
grep-pcre2 = { version = "0.1.9", path = "../pcre2", optional = true }
grep-printer = { versi... | 2 | 2 | 2 |
86e0ab12eff635bd924e3f92bd01be3545eac7b5 | Andrew Gallant | 2025-10-22T12:25:01 | grep-searcher-0.1.16 | diff --git a/Cargo.lock b/Cargo.lock
index ae161ca..b4d7b22 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -227,7 +227,7 @@ dependencies = [
[[package]]
name = "grep-searcher"
-version = "0.1.15"
+version = "0.1.16"
dependencies = [
"bstr",
"encoding_rs",
diff --git a/crates/searcher/Cargo.toml b/crates/searcher/... | 2 | 2 | 2 |
7189950799adf91a22bc29fdfcd99c287a091cb4 | Andrew Gallant | 2025-10-22T12:24:51 | deps: bump to globset 0.4.18 | diff --git a/crates/cli/Cargo.toml b/crates/cli/Cargo.toml
index f6e9a76..053a1c7 100644
--- a/crates/cli/Cargo.toml
+++ b/crates/cli/Cargo.toml
@@ -15,7 +15,7 @@ edition = "2024"
[dependencies]
bstr = { version = "1.6.2", features = ["std"] }
-globset = { version = "0.4.17", path = "../globset" }
+globset = { vers... | 2 | 2 | 2 |
0b0e013f5ac6ae1dbfdf97f6f6aaa27d7c9bc317 | Andrew Gallant | 2025-10-22T12:23:57 | globset-0.4.18 | diff --git a/Cargo.lock b/Cargo.lock
index aca6542..ae161ca 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -144,7 +144,7 @@ checksum = "0cc23270f6e1808e30a928bdc84dea0b9b4136a8bc82338574f23baf47bbd280"
[[package]]
name = "globset"
-version = "0.4.17"
+version = "0.4.18"
dependencies = [
"aho-corasick",
"arbitrary... | 2 | 2 | 2 |
bee13375ed7c4360714175c2ec1e50ed8a8a8fc9 | Andrew Gallant | 2025-10-22T12:21:56 | deps: update everything | diff --git a/Cargo.lock b/Cargo.lock
index 37912e1..aca6542 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -298,9 +298,9 @@ checksum = "f52b00d39961fc5b2736ea853c9cc86238e165017a493d1d5c8eac6bdc4cc273"
[[package]]
name = "memmap2"
-version = "0.9.8"
+version = "0.9.9"
source = "registry+https://github.com/rust-lang/c... | 1 | 10 | 10 |
24e88dc15b58b6fcc16d217158994871e756a6ca | Jorge Gomez | 2025-10-22T12:18:30 | ignore/types: add `ssa` type
This PR adds support for [.ssa](https://en.wikipedia.org/wiki/Static_single-assignment_form) files as read by [qbe](https://c9x.me/compile/):
See: https://c9x.me/compile/doc/il.html#Input-Files | diff --git a/crates/ignore/src/default_types.rs b/crates/ignore/src/default_types.rs
index 4e060b7..de63978 100644
--- a/crates/ignore/src/default_types.rs
+++ b/crates/ignore/src/default_types.rs
@@ -274,6 +274,7 @@ pub(crate) const DEFAULT_TYPES: &[(&[&str], &[&str])] = &[
(&["spark"], &["*.spark"]),
(&["sp... | 1 | 1 | 0 |
5748f81bb107ce65f32cff330fe90dc639af262c | Andrew Gallant | 2025-10-22T11:47:07 | printer: use `doc_cfg` instead of `doc_auto_cfg`
Fixes #3202 | diff --git a/crates/printer/Cargo.toml b/crates/printer/Cargo.toml
index a18b6cc..7216f26 100644
--- a/crates/printer/Cargo.toml
+++ b/crates/printer/Cargo.toml
@@ -35,7 +35,7 @@ grep-regex = { version = "0.1.14", path = "../regex" }
all-features = true
# This opts into a nightly unstable option to show the features ... | 2 | 2 | 2 |
38d630261aded3a8e535fe85761e68af35bc462d | Enoch | 2025-10-17T18:59:17 | printer: add Cursor hyperlink alias
This is similar to the other aliases used by
VS Code forks.
PR #3192 | diff --git a/crates/printer/src/hyperlink/aliases.rs b/crates/printer/src/hyperlink/aliases.rs
index faefb20..3db34e0 100644
--- a/crates/printer/src/hyperlink/aliases.rs
+++ b/crates/printer/src/hyperlink/aliases.rs
@@ -4,6 +4,11 @@ use crate::hyperlink::HyperlinkAlias;
///
/// These need to be sorted by name.
pub(... | 1 | 5 | 0 |
b3dc4b09988b4fe7d8ff69ad576623d57f7c3b75 | Andrew Gallant | 2025-10-17T14:27:19 | globset: improve debug log
This shows the regex that the glob was compiled to. | diff --git a/crates/globset/src/lib.rs b/crates/globset/src/lib.rs
index 024a381..27076ea 100644
--- a/crates/globset/src/lib.rs
+++ b/crates/globset/src/lib.rs
@@ -503,7 +503,11 @@ impl GlobSet {
required_exts.add(i, ext, p.regex().to_owned());
}
MatchStrategy::Re... | 1 | 5 | 1 |
ca2e34f37c5fa3021d0c14a67a7f0590166ade4f | Andrew Gallant | 2025-10-16T03:06:34 | grep-0.4.0 | diff --git a/Cargo.lock b/Cargo.lock
index 86ba963..452d408 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -159,7 +159,7 @@ dependencies = [
[[package]]
name = "grep"
-version = "0.3.2"
+version = "0.4.0"
dependencies = [
"grep-cli",
"grep-matcher",
diff --git a/Cargo.toml b/Cargo.toml
index 779c15f..b210fc9 1006... | 3 | 3 | 3 |
a6092beee4a16055e32f42d4024a9bb68402f781 | Andrew Gallant | 2025-10-16T03:05:10 | deps: bump to grep-printer 0.3.0 | diff --git a/Cargo.lock b/Cargo.lock
index 44b84d1..86ba963 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -202,7 +202,7 @@ dependencies = [
[[package]]
name = "grep-printer"
-version = "0.2.2"
+version = "0.3.0"
dependencies = [
"bstr",
"grep-matcher", | 1 | 1 | 1 |
a0d61a063f5ff7c1d1b131882d92999c923c3420 | Andrew Gallant | 2025-10-16T03:04:24 | grep-printer-0.3.0 | diff --git a/crates/grep/Cargo.toml b/crates/grep/Cargo.toml
index 62381bc..0f96695 100644
--- a/crates/grep/Cargo.toml
+++ b/crates/grep/Cargo.toml
@@ -17,7 +17,7 @@ edition = "2024"
grep-cli = { version = "0.1.12", path = "../cli" }
grep-matcher = { version = "0.1.8", path = "../matcher" }
grep-pcre2 = { version =... | 2 | 2 | 2 |
c22fc0f13ce1cbe3bd40b659628aea21874938a2 | Andrew Gallant | 2025-10-16T03:02:59 | deps: bump to grep-searcher 0.1.15 | diff --git a/crates/grep/Cargo.toml b/crates/grep/Cargo.toml
index c3261d5..62381bc 100644
--- a/crates/grep/Cargo.toml
+++ b/crates/grep/Cargo.toml
@@ -19,7 +19,7 @@ grep-matcher = { version = "0.1.8", path = "../matcher" }
grep-pcre2 = { version = "0.1.9", path = "../pcre2", optional = true }
grep-printer = { versi... | 2 | 2 | 2 |
087f82273db91830245ba246306899f9fbbd86ec | Andrew Gallant | 2025-10-16T03:02:33 | grep-searcher-0.1.15 | diff --git a/Cargo.lock b/Cargo.lock
index fdf9139..44b84d1 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -227,7 +227,7 @@ dependencies = [
[[package]]
name = "grep-searcher"
-version = "0.1.14"
+version = "0.1.15"
dependencies = [
"bstr",
"encoding_rs",
diff --git a/crates/searcher/Cargo.toml b/crates/searcher/... | 2 | 2 | 2 |
a3a30896be61285e713901ffbf0aa30f356f8304 | Andrew Gallant | 2025-10-16T03:01:31 | deps: bump to grep-pcre2 0.1.9 | diff --git a/crates/grep/Cargo.toml b/crates/grep/Cargo.toml
index 139f11f..c3261d5 100644
--- a/crates/grep/Cargo.toml
+++ b/crates/grep/Cargo.toml
@@ -16,7 +16,7 @@ edition = "2024"
[dependencies]
grep-cli = { version = "0.1.12", path = "../cli" }
grep-matcher = { version = "0.1.8", path = "../matcher" }
-grep-pcr... | 1 | 1 | 1 |
7397ab7d97a9e07be60b3dde7c6f5ba58cc61ea8 | Andrew Gallant | 2025-10-16T03:01:07 | grep-pcre2-0.1.9 | diff --git a/Cargo.lock b/Cargo.lock
index 975c4ac..fdf9139 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -193,7 +193,7 @@ dependencies = [
[[package]]
name = "grep-pcre2"
-version = "0.1.8"
+version = "0.1.9"
dependencies = [
"grep-matcher",
"log",
diff --git a/crates/pcre2/Cargo.toml b/crates/pcre2/Cargo.toml
... | 2 | 2 | 2 |
cf1dab0d5aa15b4bf5b85660bbdcb3d257595ada | Andrew Gallant | 2025-10-16T03:00:58 | deps: bump to grep-regex 0.1.14 | diff --git a/crates/grep/Cargo.toml b/crates/grep/Cargo.toml
index bb59ac9..139f11f 100644
--- a/crates/grep/Cargo.toml
+++ b/crates/grep/Cargo.toml
@@ -18,7 +18,7 @@ grep-cli = { version = "0.1.12", path = "../cli" }
grep-matcher = { version = "0.1.8", path = "../matcher" }
grep-pcre2 = { version = "0.1.8", path = "... | 3 | 3 | 3 |
e523c6bf32079f5e51798dd797162a3cb2cf9beb | Andrew Gallant | 2025-10-16T03:00:22 | grep-regex-0.1.14 | diff --git a/Cargo.lock b/Cargo.lock
index 85390c2..975c4ac 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -216,7 +216,7 @@ dependencies = [
[[package]]
name = "grep-regex"
-version = "0.1.13"
+version = "0.1.14"
dependencies = [
"bstr",
"grep-matcher",
diff --git a/crates/regex/Cargo.toml b/crates/regex/Cargo.to... | 2 | 2 | 2 |
720376ead65b8a98469b5e3030bd009eee90f23f | Andrew Gallant | 2025-10-16T03:00:12 | deps: bump to grep-matcher 0.1.8 | diff --git a/crates/grep/Cargo.toml b/crates/grep/Cargo.toml
index 0b173e6..bb59ac9 100644
--- a/crates/grep/Cargo.toml
+++ b/crates/grep/Cargo.toml
@@ -15,7 +15,7 @@ edition = "2024"
[dependencies]
grep-cli = { version = "0.1.12", path = "../cli" }
-grep-matcher = { version = "0.1.7", path = "../matcher" }
+grep-m... | 5 | 5 | 5 |
a5ba50ceaf01908fed077eb914a84bd02e016a70 | Andrew Gallant | 2025-10-16T02:59:35 | grep-matcher-0.1.8 | diff --git a/Cargo.lock b/Cargo.lock
index 0dd0cef..85390c2 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -185,7 +185,7 @@ dependencies = [
[[package]]
name = "grep-matcher"
-version = "0.1.7"
+version = "0.1.8"
dependencies = [
"memchr",
"regex",
diff --git a/crates/matcher/Cargo.toml b/crates/matcher/Cargo.tom... | 2 | 2 | 2 |
a766f79710f9182f78bd80e47d152cdc0f9b8c99 | Andrew Gallant | 2025-10-16T02:59:17 | deps: bump to grep-cli 0.1.12 | diff --git a/crates/grep/Cargo.toml b/crates/grep/Cargo.toml
index a7c986c..0b173e6 100644
--- a/crates/grep/Cargo.toml
+++ b/crates/grep/Cargo.toml
@@ -14,7 +14,7 @@ license = "Unlicense OR MIT"
edition = "2024"
[dependencies]
-grep-cli = { version = "0.1.11", path = "../cli" }
+grep-cli = { version = "0.1.12", pa... | 1 | 1 | 1 |
4aafe45760adfe6505a9852e14cad4a15f79b7c9 | Andrew Gallant | 2025-10-16T02:58:42 | grep-cli-0.1.12 | diff --git a/Cargo.lock b/Cargo.lock
index 4a21180..0dd0cef 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -173,7 +173,7 @@ dependencies = [
[[package]]
name = "grep-cli"
-version = "0.1.11"
+version = "0.1.12"
dependencies = [
"bstr",
"globset",
diff --git a/crates/cli/Cargo.toml b/crates/cli/Cargo.toml
index 78... | 2 | 2 | 2 |
c03e49b8c55f5184824580d7c26c2d37c6b648d6 | Andrew Gallant | 2025-10-16T02:58:35 | deps: bump to ignore 0.4.24 | diff --git a/Cargo.toml b/Cargo.toml
index 5c2ada4..779c15f 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -53,7 +53,7 @@ members = [
anyhow = "1.0.75"
bstr = "1.7.0"
grep = { version = "0.3.2", path = "crates/grep" }
-ignore = { version = "0.4.23", path = "crates/ignore" }
+ignore = { version = "0.4.24", path = "crate... | 1 | 1 | 1 |
70ae7354e1b6328ed7eb2e6ff93fd28ecd5441c9 | Andrew Gallant | 2025-10-16T02:57:50 | ignore-0.4.24 | diff --git a/Cargo.lock b/Cargo.lock
index 9ddfe11..4a21180 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -242,7 +242,7 @@ dependencies = [
[[package]]
name = "ignore"
-version = "0.4.23"
+version = "0.4.24"
dependencies = [
"bstr",
"crossbeam-channel",
diff --git a/crates/ignore/Cargo.toml b/crates/ignore/Cargo... | 2 | 2 | 2 |
19c2a6e0d9bc685a767f6ab049e0a6aa6cdbfbe8 | Andrew Gallant | 2025-10-16T02:57:28 | deps: bump to globset 0.4.17 | diff --git a/crates/cli/Cargo.toml b/crates/cli/Cargo.toml
index 4bd3e89..7840371 100644
--- a/crates/cli/Cargo.toml
+++ b/crates/cli/Cargo.toml
@@ -15,7 +15,7 @@ edition = "2024"
[dependencies]
bstr = { version = "1.6.2", features = ["std"] }
-globset = { version = "0.4.15", path = "../globset" }
+globset = { vers... | 2 | 2 | 2 |
064b36b115228bbe2ca72fc7932777096bcb2602 | Andrew Gallant | 2025-10-16T02:55:55 | globset-0.4.17 | diff --git a/Cargo.lock b/Cargo.lock
index 6f2b193..9ddfe11 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -144,7 +144,7 @@ checksum = "0cc23270f6e1808e30a928bdc84dea0b9b4136a8bc82338574f23baf47bbd280"
[[package]]
name = "globset"
-version = "0.4.16"
+version = "0.4.17"
dependencies = [
"aho-corasick",
"arbitrary... | 2 | 2 | 2 |
62e676843af3ba046b027e5407f06e35343c808c | Andrew Gallant | 2025-10-16T02:46:18 | deps: update everything | diff --git a/Cargo.lock b/Cargo.lock
index 57acd99..6f2b193 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -51,9 +51,9 @@ dependencies = [
[[package]]
name = "cfg-if"
-version = "1.0.3"
+version = "1.0.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "2fd1289c04a9ea8cb22300a459a72a385d7... | 1 | 11 | 20 |
9ec08522bee566c8fbf03c340acd7a1ff1789a9f | Luke Hannan | 2025-10-14T19:15:07 | ignore/types: add lowercase R extensions
PR #3186 | diff --git a/crates/ignore/src/default_types.rs b/crates/ignore/src/default_types.rs
index 528415a..4e060b7 100644
--- a/crates/ignore/src/default_types.rs
+++ b/crates/ignore/src/default_types.rs
@@ -219,7 +219,7 @@ pub(crate) const DEFAULT_TYPES: &[(&[&str], &[&str])] = &[
(&["qml"], &["*.qml"]),
(&["qrc"],... | 1 | 1 | 1 |
d4b77a8d8967ce1bf701ec65ceb9a75e85e5f2e0 | Andrew Gallant | 2025-10-14T17:46:02 | searcher: fix a performance bug with `-A/--after-context`
Previously (with the previous commit):
```
$ cat bigger.txt | (time rg ZQZQZQZQZQ -A999) | wc -l
real 2.321
user 0.674
sys 0.735
maxmem 30 MB
faults 0
1000
$ cat bigger.txt | (time rg ZQZQZQZQZQ -A9999) | wc -l
real 2.513
user 0.823
sys ... | diff --git a/crates/searcher/src/searcher/core.rs b/crates/searcher/src/searcher/core.rs
index 87eaf7f..e0693c0 100644
--- a/crates/searcher/src/searcher/core.rs
+++ b/crates/searcher/src/searcher/core.rs
@@ -191,10 +191,14 @@ impl<'s, M: Matcher, S: Sink> Core<'s, M, S> {
// separator (when before_context... | 1 | 5 | 1 |
916415857f084e63efda03cf25a67fe7f6d24244 | Andrew Gallant | 2025-10-12T18:18:14 | core: don't build decompression reader unless we intend to use it
Building it can consume resources. In particular, on Windows, the
various binaries are eagerly resolved.
I think this originally wasn't done. The eager resolution was added
later for security purposes. But the "eager" part isn't actually
necessary.
It... | diff --git a/crates/core/search.rs b/crates/core/search.rs
index d03433f..2fb4cba 100644
--- a/crates/core/search.rs
+++ b/crates/core/search.rs
@@ -41,7 +41,6 @@ impl Default for Config {
pub(crate) struct SearchWorkerBuilder {
config: Config,
command_builder: grep::cli::CommandReaderBuilder,
- decomp_bu... | 1 | 21 | 18 |
f0faa91c68c0d2f8c4b93a5e8546b4d3554f637e | Andrew Gallant | 2025-10-11T01:44:50 | doc: clarify `--ignore-file` precedence
Fixes #2777 | diff --git a/crates/core/flags/defs.rs b/crates/core/flags/defs.rs
index 65e74c5..5ce9108 100644
--- a/crates/core/flags/defs.rs
+++ b/crates/core/flags/defs.rs
@@ -3229,9 +3229,11 @@ impl Flag for IgnoreFile {
Specifies a path to one or more \fBgitignore\fP formatted rules files.
These patterns are applied after the... | 1 | 5 | 3 |
a5d9e03c687c14618d9224e0cbea3061860ba8de | Andrew Gallant | 2025-10-11T01:36:59 | test: attempt to fix flaky time-reliant test
Fixes #2794 | diff --git a/tests/feature.rs b/tests/feature.rs
index f83ed57..1424249 100644
--- a/tests/feature.rs
+++ b/tests/feature.rs
@@ -943,18 +943,18 @@ rgtest!(f2361_sort_nested_files, |dir: Dir, mut cmd: TestCommand| {
return;
}
dir.create("foo", "1");
- sleep(Duration::from_millis(100));
+ sleep(D... | 1 | 4 | 4 |
924ba101eed70e4e096ba639382c73dec90c2c86 | Andrew Gallant | 2025-10-11T01:10:49 | test: fix `Command::current_dir` API
Every single call site wants to pass a path relative to the directory
the command was created for. So just make it do that automatically,
similar to `Dir::create` and friends. | diff --git a/tests/feature.rs b/tests/feature.rs
index f79186d..f83ed57 100644
--- a/tests/feature.rs
+++ b/tests/feature.rs
@@ -154,7 +154,7 @@ test
// parent ignore files and manually specified ignore files.
let mut cmd = dir.command();
cmd.args(&["--ignore-file", "../.not-an-ignore", "-l", "test"]);
-... | 4 | 24 | 25 |
bb88a1ac45c70bef97e0d6ccd6e91595610de860 | Andrew Gallant | 2025-10-05T14:52:46 | deps: semver compatible updated to dependencies | diff --git a/Cargo.lock b/Cargo.lock
index d1e2c03..431b0db 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -39,9 +39,9 @@ dependencies = [
[[package]]
name = "cc"
-version = "1.2.38"
+version = "1.2.40"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "80f41ae168f955c12fb8960b057d70d0ca153... | 1 | 24 | 24 |
2924d0c4c0c87a147623d9254fbdbe7b28e7f872 | Alvaro Parker | 2025-09-28T22:15:18 | ignore: add `min_depth` option
This mimics the eponymous option in `walkdir`.
Closes #3158, PR #3162 | diff --git a/crates/ignore/src/walk.rs b/crates/ignore/src/walk.rs
index 4856351..3e06fb3 100644
--- a/crates/ignore/src/walk.rs
+++ b/crates/ignore/src/walk.rs
@@ -484,6 +484,7 @@ pub struct WalkBuilder {
paths: Vec<PathBuf>,
ig_builder: IgnoreBuilder,
max_depth: Option<usize>,
+ min_depth: Option<us... | 1 | 92 | 4 |
9d8016d10c94a5af2768eb6dd0440386a7d317a0 | Andrew Gallant | 2025-10-04T12:55:37 | printer: finish removal of `max_matches`
This finishes what I started in commit
a6e0be3c909c5c09e5fb402c907f3beb88cfb4c4.
Specifically, the `max_matches` configuration has been moved to the
`grep-searcher` crate and *removed* from the `grep-printer` crate. The
commit message has the details for why we're doing this, b... | diff --git a/crates/core/flags/hiargs.rs b/crates/core/flags/hiargs.rs
index a0b3282..a98bde2 100644
--- a/crates/core/flags/hiargs.rs
+++ b/crates/core/flags/hiargs.rs
@@ -596,7 +596,6 @@ impl HiArgs {
) -> grep::printer::JSON<W> {
grep::printer::JSONBuilder::new()
.pretty(false)
- ... | 3 | 10 | 108 |
fdea9723cac34b6e93e259c2366c94e8319de0ca | Andrew Gallant | 2025-09-23T02:12:15 | doc: clarify a case where -m/--max-count is not strictly respected
In #2843, it's requested that these trailing contextual lines should be
displayed as non-matching because they exceed the limit. While
reasonable, I think that:
1. This would be a weird complication to the implementation.
2. This would overall be less... | diff --git a/crates/core/flags/defs.rs b/crates/core/flags/defs.rs
index bbe1348..65e74c5 100644
--- a/crates/core/flags/defs.rs
+++ b/crates/core/flags/defs.rs
@@ -3898,6 +3898,10 @@ When \flag{multiline} is used, a single match that spans multiple lines is only
counted once for the purposes of this limit. Multiple m... | 1 | 4 | 0 |
c45ec16360870bba60505489fb745ad245075a86 | Andrew Gallant | 2025-09-23T02:00:15 | doc: clarify `--multiline --count`
Specifically, it is only equivalent to `--count-matches` when the
pattern(s) given can match over multiple lines.
We could have instead made `--multiline --count` always equivalent to
`--multiline --count-matches`, but this seems plausibly less useful.
Indeed, I think it's generally... | diff --git a/crates/core/flags/defs.rs b/crates/core/flags/defs.rs
index e9b05df..bbe1348 100644
--- a/crates/core/flags/defs.rs
+++ b/crates/core/flags/defs.rs
@@ -1264,12 +1264,13 @@ impl Flag for Count {
}
fn doc_long(&self) -> &'static str {
r"
-This flag suppresses normal output and shows the nu... | 1 | 7 | 6 |
e42432cc5dc32820d025e28287bba70a3751f8ca | Andrew Gallant | 2025-09-23T01:49:29 | ignore: clarify `WalkBuilder::filter_entry`
Fixes #2913 | diff --git a/crates/ignore/src/walk.rs b/crates/ignore/src/walk.rs
index 41cd138..4856351 100644
--- a/crates/ignore/src/walk.rs
+++ b/crates/ignore/src/walk.rs
@@ -898,6 +898,10 @@ impl WalkBuilder {
///
/// Note that the errors for reading entries that may not satisfy the
/// predicate will still be yi... | 1 | 4 | 0 |
6e77339f30bd4eeaa3980a3256f57e81ec579302 | Andrew Gallant | 2025-09-23T01:38:08 | cli: tweak docs for `resolve_binary`
Fixes #2928 | diff --git a/crates/cli/src/decompress.rs b/crates/cli/src/decompress.rs
index 0bfc93e..3616a38 100644
--- a/crates/cli/src/decompress.rs
+++ b/crates/cli/src/decompress.rs
@@ -414,6 +414,8 @@ impl io::Read for DecompressionReader {
/// relative path. We permit this since it is assumed that the user has set
/// this ... | 1 | 2 | 0 |
8b5d3d1c1e3b0e32f22aa634d000b314f6d4d465 | Andrew Gallant | 2025-09-21T17:56:40 | printer: hack in a fix for `-l/--files-with-matches` when using `--pcre2 --multiline` with look-around
The underlying issue here is #2528, which was introduced by commit
efd9cfb2fc1f0233de9eda4c03416d32ef2c3ce8 which fixed another bug.
For the specific case of "did a file match," we can always assume the
match count ... | diff --git a/crates/printer/src/summary.rs b/crates/printer/src/summary.rs
index 86ce095..615abd2 100644
--- a/crates/printer/src/summary.rs
+++ b/crates/printer/src/summary.rs
@@ -683,7 +683,11 @@ impl<'p, 's, M: Matcher, W: WriteColor> Sink for SummarySink<'p, 's, M, W> {
true
},... | 2 | 46 | 1 |
491bf3f6d5bc1a621754440e291960f460a9c003 | Andrew Gallant | 2025-09-21T15:31:16 | deps: update everything else | diff --git a/Cargo.lock b/Cargo.lock
index 6701ccc..d1e2c03 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -13,25 +13,19 @@ dependencies = [
[[package]]
name = "anyhow"
-version = "1.0.98"
+version = "1.0.100"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "e16d2d3311acee920a9eb8d33b8cbc... | 1 | 78 | 119 |
81bed78654f57f344e6ef79b81751c09ea60c74e | Andrew Gallant | 2025-09-21T15:30:42 | deps: update to PCRE2 10.46
This is for completely static builds of ripgrep. | diff --git a/Cargo.lock b/Cargo.lock
index 49af1f7..6701ccc 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -1,6 +1,6 @@
# This file is automatically @generated by Cargo.
# It is not intended for manual editing.
-version = 3
+version = 4
[[package]]
name = "aho-corasick"
@@ -306,9 +306,9 @@ dependencies = [
[[pack... | 1 | 5 | 5 |
a7b7d81d66b6e2e4311d5dd0683022c2978650f1 | Lucas Trzesniewski | 2025-09-21T13:15:48 | lint: fix a few Clippy errors
PR #3151 | diff --git a/crates/cli/src/decompress.rs b/crates/cli/src/decompress.rs
index 9e93c98..0bfc93e 100644
--- a/crates/cli/src/decompress.rs
+++ b/crates/cli/src/decompress.rs
@@ -177,7 +177,7 @@ impl DecompressionMatcher {
/// If there are multiple possible commands matching the given path, then
/// the command... | 4 | 5 | 5 |
f596a5d8750a6a6db1b87ad95a78667322c06cbd | mostafa | 2025-09-12T19:53:35 | globset: add `allow_unclosed_class` toggle
When enabled, patterns like `[abc`, `[]`, `[!]` are treated as if the
opening `[` is just a literal. This is in contrast the default behavior,
which prioritizes better error messages, of returning a parse error.
Fixes #3127, Closes #3145 | diff --git a/crates/globset/src/glob.rs b/crates/globset/src/glob.rs
index 14c2cba..f745b1d 100644
--- a/crates/globset/src/glob.rs
+++ b/crates/globset/src/glob.rs
@@ -229,6 +229,11 @@ struct GlobOptions {
/// Whether or not an empty case in an alternate will be removed.
/// e.g., when enabled, `{,a}` will m... | 4 | 193 | 17 |
556623684e99fade287f265c5f513321487dd35a | Thomas ten Cate | 2025-09-08T08:46:21 | ignore/types: add GDScript files (*.gd) for the Godot Engine
Closes #3142 | diff --git a/crates/ignore/src/default_types.rs b/crates/ignore/src/default_types.rs
index 930fbd3..528415a 100644
--- a/crates/ignore/src/default_types.rs
+++ b/crates/ignore/src/default_types.rs
@@ -90,6 +90,7 @@ pub(crate) const DEFAULT_TYPES: &[(&[&str], &[&str])] = &[
(&["fsharp"], &["*.fs", "*.fsx", "*.fsi"]... | 1 | 1 | 0 |
a60e62d9ac559b1468d4dd27b80a7b662a600e0c | Andrew Gallant | 2025-09-07T19:07:45 | rust: move to Rust 2024
I'd like to use let chains.
Probably this isn't necessary to do for every crate, but I don't feel
like maintaining a mismash. | diff --git a/Cargo.toml b/Cargo.toml
index 16aed2f..ad58eca 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -24,7 +24,7 @@ exclude = [
]
build = "build.rs"
autotests = false
-edition = "2021"
+edition = "2024"
rust-version = "1.88"
[[bin]]
diff --git a/crates/cli/Cargo.toml b/crates/cli/Cargo.toml
index ed15ef3..4bd... | 14 | 16 | 16 |
3f565b58cc85a655b552ddcfad1e31b60bdc374f | Cristián Maureira-Fredes | 2025-09-07T11:25:20 | ignore/types: add Qt types for resource files and ui declaration
qrc[1] are the resource files for data related to user interfaces, and
ui[2] is the extension that the Qt Designer generates, for Widget based
projects.
Note that the initial PR used `ui` as a name for `*.ui`, but this seems
overly general. Instead, we ... | diff --git a/crates/ignore/src/default_types.rs b/crates/ignore/src/default_types.rs
index 7f08587..930fbd3 100644
--- a/crates/ignore/src/default_types.rs
+++ b/crates/ignore/src/default_types.rs
@@ -216,6 +216,8 @@ pub(crate) const DEFAULT_TYPES: &[(&[&str], &[&str])] = &[
(&["py", "python"], &["*.py", "*.pyi"])... | 1 | 2 | 0 |
66aa4a63bb52468aa789cfa00c0643111ff03239 | Lucas Trzesniewski | 2025-07-16T19:53:43 | printer: deduplicate hyperlink alias names
This exports a new `HyperlinkAlias` type in the `grep-printer` crate.
This includes a "display priority" with each alias and a function for
getting all supported aliases from the crate.
This should hopefully make it possible for downstream users of this
crate to include a li... | diff --git a/crates/core/flags/defs.rs b/crates/core/flags/defs.rs
index f97b849..7b9af14 100644
--- a/crates/core/flags/defs.rs
+++ b/crates/core/flags/defs.rs
@@ -17,7 +17,7 @@ ripgrep. For example, `-E`, `--encoding` and `--no-encoding` all manipulate the
same encoding state in ripgrep.
*/
-use std::path::PathBu... | 5 | 202 | 104 |
859d54270ec19f8ffc98343d9af886c10728d680 | Ben Heidemann | 2025-06-12T15:10:23 | globset: make `GlobSet::new` public
For users of globset who already have a `Vec<Glob>` (or similar),
the current API requires them to iterate over their `Vec<Glob>`,
calling `GlobSetBuilder::add` for each `Glob`, thus constructing a new
`Vec<Glob>` internal to the GlobSetBuilder. This makes the consuming
code unneces... | diff --git a/crates/globset/src/glob.rs b/crates/globset/src/glob.rs
index 378f3f4..14c2cba 100644
--- a/crates/globset/src/glob.rs
+++ b/crates/globset/src/glob.rs
@@ -80,6 +80,12 @@ pub struct Glob {
tokens: Tokens,
}
+impl AsRef<Glob> for Glob {
+ fn as_ref(&self) -> &Glob {
+ self
+ }
+}
+
imp... | 2 | 25 | 6 |
33b44812c0a01f4f2a316bac04d4a7477cf41444 | David Tolnay | 2025-07-08T05:31:11 | globset: make `GlobSet::empty` const
Closes #3098 | diff --git a/crates/globset/src/lib.rs b/crates/globset/src/lib.rs
index b960427..3bfb3f7 100644
--- a/crates/globset/src/lib.rs
+++ b/crates/globset/src/lib.rs
@@ -322,7 +322,7 @@ impl GlobSet {
/// Create an empty `GlobSet`. An empty set matches nothing.
#[inline]
- pub fn empty() -> GlobSet {
+ pub... | 1 | 1 | 1 |
c007d8914510e799c72a72b99980554cb673414a | Lucas Garron | 2025-08-08T01:39:34 | doc: clarify that `.git` is covered by `--hidden` and not `--ignore-vcs`
Fixes #3121, Closes #3122 | diff --git a/crates/core/flags/defs.rs b/crates/core/flags/defs.rs
index eb59e33..deb3961 100644
--- a/crates/core/flags/defs.rs
+++ b/crates/core/flags/defs.rs
@@ -2752,6 +2752,11 @@ ripgrep.
A file or directory is considered hidden if its base name starts with a dot
character (\fB.\fP). On operating systems which s... | 1 | 14 | 5 |
60aa9f17276409257ad612fccefba13c26ed0d74 | Vishva Natarajan | 2025-06-21T20:06:07 | tests: increase sleep duration for sort file metadata tests on Windows AArch64
Use `cfg!` to assign a 1000ms delay only on Windows Aarch64 targets.
This was done because it has been observed to be necessary on this
platform. The conditional logic is used because 1s is quite long to
wait on every other more sensible p... | diff --git a/tests/misc.rs b/tests/misc.rs
index f1091b9..8d9a93a 100644
--- a/tests/misc.rs
+++ b/tests/misc.rs
@@ -1092,16 +1092,22 @@ rgtest!(type_list, |_: Dir, mut cmd: TestCommand| {
// This order is important when sorting them by system time-stamps.
fn sort_setup(dir: Dir) {
use std::{thread::sleep, time:... | 1 | 11 | 5 |
56d03a1e2f8f12a2a5fe8fcc3b1a4c5039291c9a | Porkepix | 2025-07-31T12:34:23 | ignore/types: include missing files for the tf type
Existing matches were too restrictives, so we simplify those to every
type of tfvars file we can encounter.
Closes #3117 | diff --git a/crates/ignore/src/default_types.rs b/crates/ignore/src/default_types.rs
index cd1604f..7f08587 100644
--- a/crates/ignore/src/default_types.rs
+++ b/crates/ignore/src/default_types.rs
@@ -288,9 +288,8 @@ pub(crate) const DEFAULT_TYPES: &[(&[&str], &[&str])] = &[
(&["texinfo"], &["*.texi"]),
(&["t... | 1 | 2 | 3 |
e166f271dff589ec39d21235ef38f792545be37d | Tomek | 2025-07-20T21:38:31 | ignore/types: add gleam
[Gleam] is a general-purpose, concurrent, functional high-level
programming language that compiles to Erlang or JavaScript source code.
Closes #3105
[Gleam]: https://gleam.run/ | diff --git a/crates/ignore/src/default_types.rs b/crates/ignore/src/default_types.rs
index de58ecc..cd1604f 100644
--- a/crates/ignore/src/default_types.rs
+++ b/crates/ignore/src/default_types.rs
@@ -90,6 +90,7 @@ pub(crate) const DEFAULT_TYPES: &[(&[&str], &[&str])] = &[
(&["fsharp"], &["*.fs", "*.fsx", "*.fsi"]... | 1 | 1 | 0 |
83d94672ae09a5deb6d4d795b105b3b18d34508a | Andrew McNulty | 2025-06-30T12:13:12 | ignore/types: add LLVM to default types
This PR adds llvm to the list of default types, matching files with
extension ll which is used widely for the textual form of LLVM's
Intermediate Representation.
Ref: https://llvm.org/docs/LangRef.html
Closes #3079 | diff --git a/crates/ignore/src/default_types.rs b/crates/ignore/src/default_types.rs
index 9859049..de58ecc 100644
--- a/crates/ignore/src/default_types.rs
+++ b/crates/ignore/src/default_types.rs
@@ -152,6 +152,7 @@ pub(crate) const DEFAULT_TYPES: &[(&[&str], &[&str])] = &[
]),
(&["lilypond"], &["*.ly", "*.i... | 1 | 1 | 0 |
6887122e5bcef8d4b7a2c70ea04ef9d87d80faff | James Moberg | 2025-07-05T00:37:38 | ignore/types: add ColdFusion and BoxLang
Closes #3090 | diff --git a/crates/ignore/src/default_types.rs b/crates/ignore/src/default_types.rs
index b4de4b9..9859049 100644
--- a/crates/ignore/src/default_types.rs
+++ b/crates/ignore/src/default_types.rs
@@ -30,6 +30,7 @@ pub(crate) const DEFAULT_TYPES: &[(&[&str], &[&str])] = &[
"WORKSPACE", "WORKSPACE.bazel", "WORK... | 1 | 2 | 0 |
06210b382a4628258680cfdda07d5ed73a88b046 | Lilian A. Moraru | 2025-06-06T09:58:07 | ignore/types: add `.env` to `sh` file type
`.env` or "dotenv" is used quite often in cross-compilation/embedded
development environments to load environment variables, define shell
functions or even to execute shell commands. Just like `.zshenv` in
this list, I think `.env` should also be added here.
Closes #3063 | diff --git a/crates/ignore/src/default_types.rs b/crates/ignore/src/default_types.rs
index 3d0ac64..b4de4b9 100644
--- a/crates/ignore/src/default_types.rs
+++ b/crates/ignore/src/default_types.rs
@@ -238,7 +238,7 @@ pub(crate) const DEFAULT_TYPES: &[(&[&str], &[&str])] = &[
(&["seed7"], &["*.sd7", "*.s7i"]),
... | 1 | 2 | 2 |
00e501b529fc709806a413a88c2f32487e7958cb | kevichi7 | 2025-05-29T12:33:35 | build: emit warning if git is missing during build
Closes #3057 | diff --git a/build.rs b/build.rs
index 4652be4..3479b69 100644
--- a/build.rs
+++ b/build.rs
@@ -37,10 +37,25 @@ fn set_git_revision_hash() {
use std::process::Command;
let args = &["rev-parse", "--short=10", "HEAD"];
- let Ok(output) = Command::new("git").args(args).output() else { return };
- let re... | 1 | 20 | 5 |
ba23ced8178496263af013117b70c09ce39c18e5 | bbb651 | 2025-03-05T21:35:44 | ignore/types: add scdoc
Ref https://sr.ht/~sircmpwn/scdoc/
Closes #3007 | diff --git a/crates/ignore/src/default_types.rs b/crates/ignore/src/default_types.rs
index 134a1fb..3d0ac64 100644
--- a/crates/ignore/src/default_types.rs
+++ b/crates/ignore/src/default_types.rs
@@ -234,6 +234,7 @@ pub(crate) const DEFAULT_TYPES: &[(&[&str], &[&str])] = &[
(&["rust"], &["*.rs"]),
(&["sass"]... | 1 | 1 | 0 |
7339bdf4b5f18ec9555e1a5bb69ef388b681ef79 | Andrew Gallant | 2025-08-17T20:14:51 | test: check binary file detection when using memory maps
This resolves a TODO comment I wrote a while back.
Memory maps behave a little differently in terms of detecting binary
data, so the tests have somewhat different results than the tests that
disable memory maps.
Closes #3002 | diff --git a/tests/binary.rs b/tests/binary.rs
index 93f6844..fd145ce 100644
--- a/tests/binary.rs
+++ b/tests/binary.rs
@@ -4,8 +4,8 @@ use crate::util::{Dir, TestCommand};
// handling of binary files. There's quite a bit of discussion on this in this
// bug report: https://github.com/BurntSushi/ripgrep/issues/306
... | 1 | 129 | 4 |
79f5a5a66e68aa50ef9f63ded777e640d345df5e | Alexander Weiss | 2024-12-24T20:04:55 | globset: add `Candidate::from_bytes` constructor
This is already technically possible to do on Unix by going through
`OsStr` and `&[u8]` conversions. This just makes it easier to do in all
circumstances and is reasonable to intentionally support.
Closes #2954, Closes #2955 | diff --git a/crates/globset/src/lib.rs b/crates/globset/src/lib.rs
index c3f5300..b960427 100644
--- a/crates/globset/src/lib.rs
+++ b/crates/globset/src/lib.rs
@@ -598,7 +598,23 @@ impl<'a> std::fmt::Debug for Candidate<'a> {
impl<'a> Candidate<'a> {
/// Create a new candidate for matching from the given path.
... | 1 | 17 | 1 |
6244e635a1a5aa4d401826b1e970d59a3f6cbf7c | Thomas Weißschuh | 2024-12-01T09:28:01 | ignore/types: add Kconfig
Kconfig files are used to represent the configuration database of
Kbuild build system. Kbuild is developed as part of the Linux kernel.
There are numerous other users including OpenWrt and U-Boot.
Ref: https://docs.kernel.org/kbuild/index.html
Closes #2942 | diff --git a/crates/ignore/src/default_types.rs b/crates/ignore/src/default_types.rs
index 297fc38..134a1fb 100644
--- a/crates/ignore/src/default_types.rs
+++ b/crates/ignore/src/default_types.rs
@@ -117,6 +117,7 @@ pub(crate) const DEFAULT_TYPES: &[(&[&str], &[&str])] = &[
(&["julia"], &["*.jl"]),
(&["jupyt... | 1 | 1 | 0 |
5e2d32fe7f3b7dcf768ffc1264dabe83e00ccaec | ChristopherYoung | 2024-11-29T08:44:28 | printer: slightly simplify code
I'm not sure why it was written with `map` previously. It almost looks
like I was trying to make it deref, but apparently that isn't needed.
Closes #2941 | diff --git a/crates/printer/src/standard.rs b/crates/printer/src/standard.rs
index 6cc5374..3b00e46 100644
--- a/crates/printer/src/standard.rs
+++ b/crates/printer/src/standard.rs
@@ -762,10 +762,8 @@ impl<'p, 's, M: Matcher, W: WriteColor> StandardSink<'p, 's, M, W> {
) -> io::Result<()> {
self.replacer... | 1 | 2 | 4 |
75e17fcabe14dd9a773e4e8dc5b2fc837f238a90 | Dmitry Gerasimov | 2024-11-25T20:28:24 | ignore/types: add `*.dtso` to `devicetree` type
`dtso` files became recognized as devicetree a
couple of years ago with the following commit:
https://github.com/torvalds/linux/commit/363547d2191cbc32ca954ba75d72908712398ff2
Closes #2938 | diff --git a/crates/ignore/src/default_types.rs b/crates/ignore/src/default_types.rs
index fb24c78..297fc38 100644
--- a/crates/ignore/src/default_types.rs
+++ b/crates/ignore/src/default_types.rs
@@ -62,7 +62,7 @@ pub(crate) const DEFAULT_TYPES: &[(&[&str], &[&str])] = &[
(&["cython"], &["*.pyx", "*.pxi", "*.pxd"... | 1 | 1 | 1 |
99b7957122454185dc5ea9e99bb1b56c8966f1a2 | Martin Pool | 2024-11-23T19:15:32 | ignore/doc: explain that `require_git(false)` will ascend above git roots
This should hopefully help avoid confusion about #2812 as encountered
in https://github.com/sourcefrog/cargo-mutants/issues/450.
Closes #2937 | diff --git a/crates/ignore/src/walk.rs b/crates/ignore/src/walk.rs
index 448e599..1549467 100644
--- a/crates/ignore/src/walk.rs
+++ b/crates/ignore/src/walk.rs
@@ -798,6 +798,10 @@ impl WalkBuilder {
///
/// When disabled, git-related ignore rules are applied even when searching
/// outside a git reposi... | 1 | 4 | 0 |
ab4665a164476bc42454b60a79aad7497ecb2592 | Andrew Gallant | 2025-08-17T13:25:25 | globset: remove `__Nonexhaustive` work-around
This existed before the `#[non_exhaustive]` attribute was a thing. Since
it was not part of the API of the crate, it is not a semver incompatible
change. | diff --git a/crates/globset/src/lib.rs b/crates/globset/src/lib.rs
index 4f0c729..c3f5300 100644
--- a/crates/globset/src/lib.rs
+++ b/crates/globset/src/lib.rs
@@ -163,6 +163,7 @@ pub struct Error {
/// The kind of error that can occur when parsing a glob pattern.
#[derive(Clone, Debug, Eq, PartialEq)]
+#[non_exha... | 1 | 1 | 9 |
b0c6d4c34afed68cfdc9dde98046716b1e773651 | Colin Heffernan | 2024-10-03T20:41:41 | ignore/types: add `*.svelte.ts` to Svelte file type glob
I was somewhat unsure about adding this, since `.svelte.ts` seems
primarily like a TypeScript file and it could be surprising to show up
in a search for Svelte files. In particular, ripgrep doesn't know how to
only search the Svelte stuff inside of a `.svelte.ts... | diff --git a/crates/ignore/src/default_types.rs b/crates/ignore/src/default_types.rs
index 53b192a..fb24c78 100644
--- a/crates/ignore/src/default_types.rs
+++ b/crates/ignore/src/default_types.rs
@@ -267,7 +267,7 @@ pub(crate) const DEFAULT_TYPES: &[(&[&str], &[&str])] = &[
(&["sql"], &["*.sql", "*.psql"]),
... | 1 | 1 | 1 |
6f39f830cb9bc7b31c330d2c019c216477374371 | squidfunk | 2025-04-09T19:24:17 | globset: compact Debug impl for `GlobSetBuilder` and `Glob`
Ideally we'd have a compact impl for `GlobSet` too, but that's a lot
more work. In particular, the constituent types don't all store the
original pattern string, so that would need to be added.
Closes #3026 | diff --git a/crates/globset/src/glob.rs b/crates/globset/src/glob.rs
index fdd6d16..8cc7645 100644
--- a/crates/globset/src/glob.rs
+++ b/crates/globset/src/glob.rs
@@ -71,7 +71,7 @@ impl MatchStrategy {
///
/// It cannot be used directly to match file paths, but it can be converted
/// to a regular expression strin... | 2 | 28 | 1 |
e83828fc8c30d5d5e0672641d8ffc64bb58081d8 | Zach Ahn | 2024-10-25T16:10:16 | ignore/types: add `*.rake` extension to list of Ruby file types
This PR adds the .rake extension to the Ruby type. It's a pretty common
file extension in Rails apps—in my experience, the Rakefile is often
pretty empty and only sets some stuff up while most of the code lives
in various .rake files.
See: https://ruby.g... | diff --git a/crates/ignore/src/default_types.rs b/crates/ignore/src/default_types.rs
index fefcdb5..53b192a 100644
--- a/crates/ignore/src/default_types.rs
+++ b/crates/ignore/src/default_types.rs
@@ -228,7 +228,7 @@ pub(crate) const DEFAULT_TYPES: &[(&[&str], &[&str])] = &[
// Idiomatic files
"config... | 1 | 1 | 1 |
72a130323813d0486861403a8aaf9b778276e6e5 | f3rn0s | 2024-10-21T07:15:25 | ignore/types: add typst
Closes #2914 | diff --git a/crates/ignore/src/default_types.rs b/crates/ignore/src/default_types.rs
index 513dba0..fefcdb5 100644
--- a/crates/ignore/src/default_types.rs
+++ b/crates/ignore/src/default_types.rs
@@ -292,6 +292,7 @@ pub(crate) const DEFAULT_TYPES: &[(&[&str], &[&str])] = &[
(&["twig"], &["*.twig"]),
(&["txt"... | 1 | 1 | 0 |
861f6d374fa3d599dca86111e9b513772ca3de1a | Hamir Mahal | 2024-10-16T16:03:15 | style: simplify string formatting
Most of this code was written before this was supported by Rust.
Closes #2912 | diff --git a/build.rs b/build.rs
index db9584b..4652be4 100644
--- a/build.rs
+++ b/build.rs
@@ -22,7 +22,7 @@ fn set_windows_exe_options() {
manifest.push(MANIFEST);
let Some(manifest) = manifest.to_str() else { return };
- println!("cargo:rerun-if-changed={}", MANIFEST);
+ println!("cargo:rerun-if-c... | 5 | 11 | 12 |
624bbf7dcee8d69949a447b4e4393e23d3e25b38 | Thayne McCombs | 2024-09-19T07:09:57 | globset: add matches_all method
This returns true if all globs in the set match the supplied file.
Fixes #2869, Closes #2900 | diff --git a/crates/globset/src/lib.rs b/crates/globset/src/lib.rs
index 4531ac2..42e6d0b 100644
--- a/crates/globset/src/lib.rs
+++ b/crates/globset/src/lib.rs
@@ -364,6 +364,43 @@ impl GlobSet {
false
}
+ /// Returns true if all globs in this set match the path given.
+ ///
+ /// This will re... | 1 | 69 | 14 |
53279db4143f4307c2b1b27f2cd32a43b0496205 | Aleksey Vasilenko | 2024-09-12T14:27:46 | deps: switch to tikv-jemallocator
It is now a recommended crate for jemalloc and it contains an
[important fix for compilation on riscv64gc-unknown-linux-musl][fix],
I bumped into this when I was trying to
[build ripgrep on OpenWrt][openwrt].
Closes #2889
[fix]: https://github.com/tikv/jemallocator/pull/67
[openwrt]... | diff --git a/Cargo.lock b/Cargo.lock
index fac37ce..49af1f7 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -261,26 +261,6 @@ version = "1.0.15"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "4a5f13b858c8d314ee3e8f639011f7ccefe71f97f96e50151fb991f267928e2c"
-[[package]]
-name = "jemalloc-s... | 3 | 24 | 24 |
5be67c1244f494414629f71be859e0e1552dd6fd | Melvin Wang | 2024-08-13T01:37:46 | ignore/types: include msbuild solution filters
Closes #2871 | diff --git a/crates/ignore/src/default_types.rs b/crates/ignore/src/default_types.rs
index 2718d0d..513dba0 100644
--- a/crates/ignore/src/default_types.rs
+++ b/crates/ignore/src/default_types.rs
@@ -182,7 +182,7 @@ pub(crate) const DEFAULT_TYPES: &[(&[&str], &[&str])] = &[
(&["motoko"], &["*.mo"]),
(&["msbu... | 1 | 1 | 1 |
d869038cf610f10a8b7aca24284719e65a477e1a | Alex Povel | 2024-07-17T07:47:25 | ignore: improve multithreading heuristic
This copies the one found in ripgrep.
See also:
https://github.com/BurntSushi/ripgrep/blob/71d71d2d98964653cdfcfa315802f518664759d7/crates/core/flags/hiargs.rs#L172
Closes #2854, Closes #2856 | diff --git a/crates/ignore/src/walk.rs b/crates/ignore/src/walk.rs
index 03a6e2d..448e599 100644
--- a/crates/ignore/src/walk.rs
+++ b/crates/ignore/src/walk.rs
@@ -1305,7 +1305,7 @@ impl WalkParallel {
fn threads(&self) -> usize {
if self.threads == 0 {
- 2
+ std::thread::availabl... | 1 | 1 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.