1
0
mirror of https://github.com/BurntSushi/ripgrep.git synced 2024-12-12 19:18:24 +02:00
ripgrep/tests
nguyenvukhang 6abb962f0d cli: fix non-path sorting behavior
Previously, sorting worked by sorting the parents and then sorting the
children within each parent. This was done during traversal, but it only
works when sorting parents preserves the overall order. This generally
only works for '--sort path' in ascending order.

This commit fixes the rest of the sorting behavior by collecting all of
the paths to search and then sorting them before searching. We only
collect all of the paths when sorting was requested.

Fixes #2243, Closes #2361
2023-07-09 10:14:03 -04:00
..
data tests: fix tests for buffer size change 2021-03-23 18:14:18 -04:00
binary.rs tests: fix tests for buffer size change 2021-03-23 18:14:18 -04:00
feature.rs cli: fix non-path sorting behavior 2023-07-09 10:14:03 -04:00
hay.rs tests: re-tool integration tests 2018-08-20 07:10:19 -04:00
json.rs grep: fix bugs in handling multi-line look-around 2021-05-31 21:51:18 -04:00
macros.rs style: rustfmt everything 2020-02-17 19:24:53 -05:00
misc.rs cli: fix non-path sorting behavior 2023-07-09 10:14:03 -04:00
multiline.rs printer: vimgrep now only prints one line 2021-05-31 21:51:18 -04:00
regression.rs cli: '--no-ignore-dot' should also '.rgignore' 2023-07-08 18:52:42 -04:00
tests.rs binary: rejigger ripgrep's handling of binary files 2019-04-14 19:29:27 -04:00
util.rs tests: add debugging output 2020-02-20 16:07:51 -05:00