diff --git a/CHANGELOG.md b/CHANGELOG.md index 891221d6..9ed29327 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -23,6 +23,8 @@ Feature enhancements: Add `italic` to the list of available style attributes in `--color`. * [FEATURE #2842](https://github.com/BurntSushi/ripgrep/pull/2842): Directories containing `.jj` are now treated as git repositories. +* [FEATURE #2849](https://github.com/BurntSushi/ripgrep/pull/2849): + When using multithreading, schedule files to search in order given on CLI. 14.1.1 (2024-09-08) diff --git a/crates/ignore/src/walk.rs b/crates/ignore/src/walk.rs index d6ea9c21..03a6e2d0 100644 --- a/crates/ignore/src/walk.rs +++ b/crates/ignore/src/walk.rs @@ -1420,8 +1420,11 @@ impl Stack { stealers: stealers.clone(), }) .collect(); - // Distribute the initial messages. + // Distribute the initial messages, reverse the order to cancel out + // the other reversal caused by the inherent LIFO processing of the + // per-thread stacks which are filled here. init.into_iter() + .rev() .zip(stacks.iter().cycle()) .for_each(|(m, s)| s.push(m)); stacks