Up to [cvs.NetBSD.org] / pkgsrc / textproc / ripgrep
Request diff between arbitrary revisions
Keyword substitution: kv
Default branch: MAIN
*: recursive bump for pcre2 10.49
*: revbump for pcre2 symbol versioning change
*: recursive bump for pcre2 10.48
ripgrep: update to 15.2.0. 15.2.0 (2026-07-15) =================== Platform support: * `aarch64-unknown-linux-musl` is now included in the release binaries for ripgrep. Performance improvements: * Improves directory traversal time on very large corpora. Feature enhancements: * ripgrep now respects `GIT_CONFIG_GLOBAL` and `GIT_CONFIG_SYSTEM`. Bug fixes: * Don't check for the existence of `.jj` when `--no-ignore` is used. * Fix gitignore matching bug when searching across multiple directories.
ripgrep: update to 15.1.0. 15.1.0 ====== This is a small release that fixes a bug with how ripgrep handles line buffering. This might manifest as ripgrep printing output later than you expect or not working correctly with `tail -f` (even if you're using the `--line-buffered` flag). Bug fixes: * [BUG #3194](https://github.com/BurntSushi/ripgrep/issues/3194): Fix a regression with `--line-buffered` introduced in ripgrep 15.0.0. Feature enhancements: * [FEATURE #3192](https://github.com/BurntSushi/ripgrep/pull/3192): Add hyperlink alias for Cursor.
*: recursive bump for pcre2 Running an old binary against the new pcre doesn't work: /usr/pkg/lib/libpcre2-8.so.0: version PCRE2_10.47 required by /usr/pkg/lib/libglib-2.0.so.0 not defined
textproc/ripgrep: update to 15.0.0 15.0.0 (2025-10-15) =================== ripgrep 15 is a new major version release of ripgrep that mostly has bug fixes, some minor performance improvements and minor new features. Here are some highlights: * Several bugs around gitignore matching have been fixed. This includes a commonly reported bug related to applying gitignore rules from parent directories. * A memory usage regression when handling very large gitignore files has been fixed. * `rg -vf file`, where `file` is empty, now matches everything. * The `-r/--replace` flag now works with `--json`. * A subset of Jujutsu (`jj`) repositories are now treated as if they were git repositories. That is, ripgrep will respect `jj`'s gitignores. * Globs can now use nested curly braces. Platform support: * `aarch64` for Windows now has release artifacts. * `powerpc64` no longer has release artifacts generated for it. The CI release workflow stopped working, and I didn't deem it worth my time to debug it. If someone wants this and can test it, I'd be happy to add it back. * ripgrep binaries are now compiled with full LTO enabled. You may notice small performance improvements from this and a modest decrease in binary size. Performance improvements: * [PERF #2111](https://github.com/BurntSushi/ripgrep/issues/2111): Don't resolve helper binaries on Windows when `-z/--search-zip` isn't used. * [PERF #2865](https://github.com/BurntSushi/ripgrep/pull/2865): Avoid using path canonicalization on Windows when emitting hyperlinks. * [PERF #3184](https://github.com/BurntSushi/ripgrep/pull/3184): Improve performance of large values with `-A/--after-context`. Bug fixes: * [BUG #829](https://github.com/BurntSushi/ripgrep/issues/829), [BUG #2731](https://github.com/BurntSushi/ripgrep/issues/2731), [BUG #2747](https://github.com/BurntSushi/ripgrep/issues/2747), [BUG #2770](https://github.com/BurntSushi/ripgrep/issues/2770), [BUG #2778](https://github.com/BurntSushi/ripgrep/issues/2778), [BUG #2836](https://github.com/BurntSushi/ripgrep/issues/2836), [BUG #2933](https://github.com/BurntSushi/ripgrep/pull/2933), [BUG #3067](https://github.com/BurntSushi/ripgrep/pull/3067): Fix bug related to gitignores from parent directories. * [BUG #1332](https://github.com/BurntSushi/ripgrep/issues/1332), [BUG #3001](https://github.com/BurntSushi/ripgrep/issues/3001): Make `rg -vf file` where `file` is empty match everything. * [BUG #2177](https://github.com/BurntSushi/ripgrep/issues/2177): Ignore a UTF-8 BOM marker at the start of `.gitignore` (and similar files). * [BUG #2750](https://github.com/BurntSushi/ripgrep/issues/2750): Fix memory usage regression for some truly large gitignore files. * [BUG #2944](https://github.com/BurntSushi/ripgrep/pull/2944): Fix a bug where the "bytes searched" in `--stats` output could be incorrect. * [BUG #2990](https://github.com/BurntSushi/ripgrep/issues/2990): Fix a bug where ripgrep would mishandle globs that ended with a `.`. * [BUG #2094](https://github.com/BurntSushi/ripgrep/issues/2094), [BUG #3076](https://github.com/BurntSushi/ripgrep/issues/3076): Fix bug with `-m/--max-count` and `-U/--multiline` showing too many matches. * [BUG #3100](https://github.com/BurntSushi/ripgrep/pull/3100): Preserve line terminators when using `-r/--replace` flag. * [BUG #3108](https://github.com/BurntSushi/ripgrep/issues/3108): Fix a bug where `-q --files-without-match` inverted the exit code. * [BUG #3131](https://github.com/BurntSushi/ripgrep/issues/3131): Document inconsistency between `-c/--count` and `--files-with-matches`. * [BUG #3135](https://github.com/BurntSushi/ripgrep/issues/3135): Fix rare panic for some classes of large regexes on large haystacks. * [BUG #3140](https://github.com/BurntSushi/ripgrep/issues/3140): Ensure hyphens in flag names are escaped in the roff text for the man page. * [BUG #3155](https://github.com/BurntSushi/ripgrep/issues/3155): Statically compile PCRE2 into macOS release artifacts on `aarch64`. * [BUG #3173](https://github.com/BurntSushi/ripgrep/issues/3173): Fix ancestor ignore filter bug when searching whitelisted hidden files. * [BUG #3178](https://github.com/BurntSushi/ripgrep/discussions/3178): Fix bug causing incorrect summary statistics with `--json` flag. * [BUG #3179](https://github.com/BurntSushi/ripgrep/issues/3179): Fix gitignore bug when searching absolute paths with global gitignores. * [BUG #3180](https://github.com/BurntSushi/ripgrep/issues/3180): Fix a panicking bug when using `-U/--multiline` and `-r/--replace`. Feature enhancements: * Many enhancements to the default set of file types available for filtering. * [FEATURE #1872](https://github.com/BurntSushi/ripgrep/issues/1872): Make `-r/--replace` work with `--json`. * [FEATURE #2708](https://github.com/BurntSushi/ripgrep/pull/2708): Completions for the fish shell take ripgrep's config file into account. * [FEATURE #2841](https://github.com/BurntSushi/ripgrep/pull/2841): 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. * [FEATURE #2943](https://github.com/BurntSushi/ripgrep/issues/2943): Add `aarch64` release artifacts for Windows. * [FEATURE #3024](https://github.com/BurntSushi/ripgrep/issues/3024): Add `highlight` color type, for styling non-matching text in a matching line. * [FEATURE #3048](https://github.com/BurntSushi/ripgrep/pull/3048): Globs in ripgrep (and the `globset` crate) now support nested alternates. * [FEATURE #3096](https://github.com/BurntSushi/ripgrep/pull/3096): Improve completions for `--hyperlink-format` in bash and fish. * [FEATURE #3102](https://github.com/BurntSushi/ripgrep/pull/3102): Improve completions for `--hyperlink-format` in zsh.
textproc/ripgrep: reset maintainer
ripgrep: Install manual page and completion rules
textproc/ripgrep: update to 14.1.1
This is a minor release with a bug fix for a matching bug. In particular, a bug
was found that could cause ripgrep to ignore lines that should match. That is,
false negatives. It is difficult to characterize the specific set of regexes
in which this occurs as it requires multiple different optimization strategies
to collide and produce an incorrect result. But as one reported example, in
ripgrep, the regex (?i:e.x|ex) does not match e-x when it should. (This
bug is a result of an inner literal optimization performed in the grep-regex
crate and not in the regex crate.)
Bug fixes:
BUG #2884:
Fix bug where ripgrep could miss some matches that it should report.
Miscellaneous:
MISC #2748:
Remove ripgrep's simd-accel feature because it was frequently broken.
ripgrep: update to 14.1.0. 14.1.0 ====== This is a minor release with a few small new features and bug fixes. This release contains a bug fix for unbounded memory growth while walking a directory tree. This release also includes improvements to the completions for the `fish` shell, and release binaries for several additional ARM targets. Bug fixes: * [BUG #2664](https://github.com/BurntSushi/ripgrep/issues/2690): Fix unbounded memory growth in the `ignore` crate. Feature enhancements: * Added or improved file type filtering for Lean and Meson. * [FEATURE #2684](https://github.com/BurntSushi/ripgrep/issues/2684): Improve completions for the `fish` shell. * [FEATURE #2702](https://github.com/BurntSushi/ripgrep/pull/2702): Add release binaries for `armv7-unknown-linux-gnueabihf`, `armv7-unknown-linux-musleabihf` and `armv7-unknown-linux-musleabi`.
textproc/ripgrep: update to 14.0.3 14.0.3 (2023-11-28) =================== This is a patch release with a bug fix for the `--sortr` flag. Bug fixes: * [BUG #2664](https://github.com/BurntSushi/ripgrep/issues/2664): Fix `--sortr=path`. I left a `todo!()` in the source. Oof.
textproc/ripgrep: update to 14.0.2 14.0.2 (2023-11-27) =================== This is a patch release with a few small bug fixes. Bug fixes: * [BUG #2654](https://github.com/BurntSushi/ripgrep/issues/2654): Fix `deb` release sha256 sum file. * [BUG #2658](https://github.com/BurntSushi/ripgrep/issues/2658): Fix partial regression in the behavior of `--null-data --line-regexp`. * [BUG #2659](https://github.com/BurntSushi/ripgrep/issues/2659): Fix Fish shell completions. * [BUG #2662](https://github.com/BurntSushi/ripgrep/issues/2662): Fix typo in documentation for `-i/--ignore-case`. 14.0.1 (2023-11-26) =================== This a patch release meant to fix `cargo install ripgrep` on Windows. Bug fixes: * [BUG #2653](https://github.com/BurntSushi/ripgrep/issues/2653): Include `pkg/windows/Manifest.xml` in crate package. 14.0.0 (2023-11-26) =================== ripgrep 14 is a new major version release of ripgrep that has some new features, performance improvements and a lot of bug fixes. The headlining feature in this release is hyperlink support. In this release, they are an opt-in feature but may change to an opt-out feature in the future. To enable them, try passing `--hyperlink-format default`. If you use [VS Code], then try passing `--hyperlink-format vscode`. Please [report your experience with hyperlinks][report-hyperlinks], positive or negative. [VS Code]: https://code.visualstudio.com/ [report-hyperlinks]: https://github.com/BurntSushi/ripgrep/discussions/2611 Another headlining development in this release is that it contains a rewrite of its regex engine. You generally shouldn't notice any changes, except for some searches may get faster. You can read more about the [regex engine rewrite on my blog][regex-internals]. Please [report your performance improvements or regressions that you notice][report-perf]. [report-perf]: https://github.com/BurntSushi/ripgrep/discussions/2652 Finally, ripgrep switched the library it uses for argument parsing. Users should not notice a difference in most cases (error messages have changed somewhat), but flag overrides should generally be more consistent. For example, things like `--no-ignore --ignore-vcs` work as one would expect (disables all filtering related to ignore rules except for rules found in version control systems such as `git`). [regex-internals]: https://blog.burntsushi.net/regex-internals/ **BREAKING CHANGES**: * `rg -C1 -A2` used to be equivalent to `rg -A2`, but now it is equivalent to `rg -B1 -A2`. That is, `-A` and `-B` no longer completely override `-C`. Instead, they only partially override `-C`. Build process changes: * ripgrep's shell completions and man page are now created by running ripgrep with a new `--generate` flag. For example, `rg --generate man` will write a man page in `roff` format on stdout. The release archives have not changed. * The optional build dependency on `asciidoc` or `asciidoctor` has been dropped. Previously, it was used to produce ripgrep's man page. ripgrep now owns this process itself by writing `roff` directly. Performance improvements: * [PERF #1746](https://github.com/BurntSushi/ripgrep/issues/1746): Make some cases with inner literals faster. * [PERF #1760](https://github.com/BurntSushi/ripgrep/issues/1760): Make most searches with `\b` look-arounds (among others) much faster. * [PERF #2591](https://github.com/BurntSushi/ripgrep/pull/2591): Parallel directory traversal now uses work stealing for faster searches. * [PERF #2642](https://github.com/BurntSushi/ripgrep/pull/2642): Parallel directory traversal has some contention reduced. Feature enhancements: * Added or improved file type filtering for Ada, DITA, Elixir, Fuchsia, Gentoo, Gradle, GraphQL, Markdown, Prolog, Raku, TypeScript, USD, V * [FEATURE #665](https://github.com/BurntSushi/ripgrep/issues/665): Add a new `--hyperlink-format` flag that turns file paths into hyperlinks. * [FEATURE #1709](https://github.com/BurntSushi/ripgrep/issues/1709): Improve documentation of ripgrep's behavior when stdout is a tty. * [FEATURE #1737](https://github.com/BurntSushi/ripgrep/issues/1737): Provide binaries for Apple silicon. * [FEATURE #1790](https://github.com/BurntSushi/ripgrep/issues/1790): Add new `--stop-on-nonmatch` flag. * [FEATURE #1814](https://github.com/BurntSushi/ripgrep/issues/1814): Flags are now categorized in `-h/--help` output and ripgrep's man page. * [FEATURE #1838](https://github.com/BurntSushi/ripgrep/issues/1838): An error is shown when searching for NUL bytes with binary detection enabled. * [FEATURE #2195](https://github.com/BurntSushi/ripgrep/issues/2195): When `extra-verbose` mode is enabled in zsh, show extra file type info. * [FEATURE #2298](https://github.com/BurntSushi/ripgrep/issues/2298): Add instructions for installing ripgrep using `cargo binstall`. * [FEATURE #2409](https://github.com/BurntSushi/ripgrep/pull/2409): Added installation instructions for `winget`. * [FEATURE #2425](https://github.com/BurntSushi/ripgrep/pull/2425): Shell completions (and man page) can be created via `rg --generate`. * [FEATURE #2524](https://github.com/BurntSushi/ripgrep/issues/2524): The `--debug` flag now indicates whether stdin or `./` is being searched. * [FEATURE #2643](https://github.com/BurntSushi/ripgrep/issues/2643): Make `-d` a short flag for `--max-depth`. * [FEATURE #2645](https://github.com/BurntSushi/ripgrep/issues/2645): The `--version` output will now also contain PCRE2 availability information. Bug fixes: * [BUG #884](https://github.com/BurntSushi/ripgrep/issues/884): Don't error when `-v/--invert-match` is used multiple times. * [BUG #1275](https://github.com/BurntSushi/ripgrep/issues/1275): Fix bug with `\b` assertion in the regex engine. * [BUG #1376](https://github.com/BurntSushi/ripgrep/issues/1376): Using `--no-ignore --ignore-vcs` now works as one would expect. * [BUG #1622](https://github.com/BurntSushi/ripgrep/issues/1622): Add note about error messages to `-z/--search-zip` documentation. * [BUG #1648](https://github.com/BurntSushi/ripgrep/issues/1648): Fix bug where sometimes short flags with values, e.g., `-M 900`, would fail. * [BUG #1701](https://github.com/BurntSushi/ripgrep/issues/1701): Fix bug where some flags could not be repeated. * [BUG #1757](https://github.com/BurntSushi/ripgrep/issues/1757): Fix bug when searching a sub-directory didn't have ignores applied correctly. * [BUG #1891](https://github.com/BurntSushi/ripgrep/issues/1891): Fix bug when using `-w` with a regex that can match the empty string. * [BUG #1911](https://github.com/BurntSushi/ripgrep/issues/1911): Disable mmap searching in all non-64-bit environments. * [BUG #1966](https://github.com/BurntSushi/ripgrep/issues/1966): Fix bug where ripgrep can panic when printing to stderr. * [BUG #2046](https://github.com/BurntSushi/ripgrep/issues/2046): Clarify that `--pre` can accept any kind of path in the documentation. * [BUG #2108](https://github.com/BurntSushi/ripgrep/issues/2108): Improve docs for `-r/--replace` syntax. * [BUG #2198](https://github.com/BurntSushi/ripgrep/issues/2198): Fix bug where `--no-ignore-dot` would not ignore `.rgignore`. * [BUG #2201](https://github.com/BurntSushi/ripgrep/issues/2201): Improve docs for `-r/--replace` flag. * [BUG #2288](https://github.com/BurntSushi/ripgrep/issues/2288): `-A` and `-B` now only each partially override `-C`. * [BUG #2236](https://github.com/BurntSushi/ripgrep/issues/2236): Fix gitignore parsing bug where a trailing `\/` resulted in an error. * [BUG #2243](https://github.com/BurntSushi/ripgrep/issues/2243): Fix `--sort` flag for values other than `path`. * [BUG #2246](https://github.com/BurntSushi/ripgrep/issues/2246): Add note in `--debug` logs when binary files are ignored. * [BUG #2337](https://github.com/BurntSushi/ripgrep/issues/2337): Improve docs to mention that `--stats` is always implied by `--json`. * [BUG #2381](https://github.com/BurntSushi/ripgrep/issues/2381): Make `-p/--pretty` override flags like `--no-line-number`. * [BUG #2392](https://github.com/BurntSushi/ripgrep/issues/2392): Improve global git config parsing of the `excludesFile` field. * [BUG #2418](https://github.com/BurntSushi/ripgrep/pull/2418): Clarify sorting semantics of `--sort=path`. * [BUG #2458](https://github.com/BurntSushi/ripgrep/pull/2458): Make `--trim` run before `-M/--max-columns` takes effect. * [BUG #2479](https://github.com/BurntSushi/ripgrep/issues/2479): Add documentation about `.ignore`/`.rgignore` files in parent directories. * [BUG #2480](https://github.com/BurntSushi/ripgrep/issues/2480): Fix bug when using inline regex flags with `-e/--regexp`. * [BUG #2505](https://github.com/BurntSushi/ripgrep/issues/2505): Improve docs for `--vimgrep` by mentioning footguns and some work-arounds. * [BUG #2519](https://github.com/BurntSushi/ripgrep/issues/2519): Fix incorrect default value in documentation for `--field-match-separator`. * [BUG #2523](https://github.com/BurntSushi/ripgrep/issues/2523): Make executable searching take `.com` into account on Windows. * [BUG #2574](https://github.com/BurntSushi/ripgrep/issues/2574): Fix bug in `-w/--word-regexp` that would result in incorrect match offsets. * [BUG #2623](https://github.com/BurntSushi/ripgrep/issues/2623): Fix a number of bugs with the `-w/--word-regexp` flag. * [BUG #2636](https://github.com/BurntSushi/ripgrep/pull/2636): Strip release binaries for macOS.
ripgrep: use cargo.mk's install
textproc/ripgrep: simplify Makefile
g/c RUSTFLAGS from individual package Makefiles. Handled by cargo.mk.
textproc/ripgrep: update to 13.0.0
-Adopt maintainership
-ripgrep 13 is a new major version release of ripgrep that primarily contains
bug fixes, some performance improvements and a few minor breaking changes.
There is also a fix for a security vulnerability on Windows
(CVE-2021-3013).
Some highlights:
A new short flag, -., has been added. It is an alias for the --hidden flag,
which instructs ripgrep to search hidden files and directories.
ripgrep is now using a new
vectorized implementation of memmem,
which accelerates many common searches. If you notice any performance
regressions (or major improvements), I'd love to hear about them through an
issue report!
Also, for Windows users targeting MSVC, Cargo will now build fully static
executables of ripgrep. The release binaries for ripgrep 13 have been compiled
using this configuration.
BREAKING CHANGES:
Binary detection output has changed slightly.
In this release, a small tweak has been made to the output format when a binary
file is detected. Previously, it looked like this:
Binary file FOO matches (found "\0" byte around offset XXX)
Now it looks like this:
FOO: binary file matches (found "\0" byte around offset XXX)
vimgrep output in multi-line now only prints the first line for each match.
See issue 1866 for more
discussion on this. Previously, every line in a match was duplicated, even
when it spanned multiple lines. There are no changes to vimgrep output when
multi-line mode is disabled.
In multi-line mode, --count is now equivalent to --count-matches.
This appears to match how pcre2grep implements --count. Previously, ripgrep
would produce outright incorrect counts. Another alternative would be to simply
count the number of lines---even if it's more than the number of matches---but
that seems highly unintuitive.
FULL LIST OF FIXES AND IMPROVEMENTS:
Security fixes:
CVE-2021-3013:
Fixes a security hole on Windows where running ripgrep with either the
-z/--search-zip or --pre flags can result in running arbitrary
executables from the current directory.
VULN #1773:
This is the public facing issue tracking CVE-2021-3013. ripgrep's README
now contains a section describing how to report a vulnerability.
Performance improvements:
PERF #1657:
Check if a file should be ignored first before issuing stat calls.
PERF memchr#82:
ripgrep now uses a new vectorized implementation of memmem.
Feature enhancements:
Added or improved file type filtering for ASP, Bazel, dvc, FlatBuffers,
Futhark, minified files, Mint, pofiles (from GNU gettext) Racket, Red, Ruby,
VCL, Yang.
FEATURE #1404:
ripgrep now prints a warning if nothing is searched.
FEATURE #1613:
Cargo will now produce static executables on Windows when using MSVC.
FEATURE #1680:
Add -. as a short flag alias for --hidden.
FEATURE #1842:
Add --field-{context,match}-separator for customizing field delimiters.
FEATURE #1856:
The README now links to a
Spanish translation.
Bug fixes:
BUG #1277:
Document cygwin path translation behavior in the FAQ.
BUG #1739:
Fix bug where replacements were buggy if the regex matched a line terminator.
BUG #1311:
Fix multi-line bug where a search & replace for \n didn't work as expected.
BUG #1401:
Fix buggy interaction between PCRE2 look-around and -o/--only-matching.
BUG #1412:
Fix multi-line bug with searches using look-around past matching lines.
BUG #1577:
Fish shell completions will continue to be auto-generated.
BUG #1642:
Fixes a bug where using -m and -A printed more matches than the limit.
BUG #1703:
Clarify the function of -u/--unrestricted.
BUG #1708:
Clarify how -S/--smart-case works.
BUG #1730:
Clarify that CLI invocation must always be valid, regardless of config file.
BUG #1741:
Fix stdin detection when using PowerShell in UNIX environments.
BUG #1756:
Fix bug where foo/** would match foo, but it shouldn't.
BUG #1765:
Fix panic when --crlf is used in some cases.
BUG #1638:
Correctly sniff UTF-8 and do transcoding, like we do for UTF-16.
BUG #1816:
Add documentation for glob alternate syntax, e.g., {a,b,..}.
BUG #1847:
Clarify how the --hidden flag works.
BUG #1866:
Fix bug when computing column numbers in --vimgrep mode.
BUG #1868:
Fix bug where --passthru and -A/-B/-C did not override each other.
BUG #1869:
Clarify docs for --files-with-matches and --files-without-match.
BUG #1878:
Fix bug where \A could produce unanchored matches in multiline search.
BUG 94e4b8e3:
Fix column numbers with --vimgrep is used with -U/--multiline.
textproc/ripgrep: fix build fail
textproc/ripgrep: use buildlink instead of DEPENDS
textproc/ripgrep: enable pcre2 support
reset maintainer
ripgrep: update to 12.1.1, fix pkglint warning.
(Note: we are not including the docs. Maybe we should...)
ripgrep 12.1.1 is a patch release that fixes a couple small bugs. In
particular, the ripgrep 12.1.0 release did not tag new releases for all of its
in-tree dependencies. As a result, ripgrep built dependencies from crates.io
would produce a different build than compiling ripgrep from source on the
12.1.0 tag. Namely, some crates like grep-cli had unreleased changes.
BUG #1581:
Corrects some egregious markup output in --help.
BUG #1591:
Mention the special $0 capture group in docs for the -r/--replace flag.
BUG #1602:
Fix failing test resulting from out-of-sync dependencies.
ripgrep 12.1.0 is a small minor version release that mostly includes bug fixes
and documentation improvements. This release also contains some important
notices for downstream packagers.
Notices for downstream ripgrep package maintainers:
Fish shell completions will be removed in the ripgrep 13 release.
See #1577
for more details.
ripgrep has switched from a2x to asciidoctor to generate the man page.
If asciidoctor is not present, then ripgrep will currently fall back to
a2x. Support for a2x will be dropped in the ripgrep 13 release.
See #1544
for more details.
Feature enhancements:
FEATURE #1547:
Support decompressing .Z files via uncompress.
Bug fixes:
BUG #1252:
Add a section on the --pre flag to the GUIDE.
BUG #1339:
Improve error message when a pattern with invalid UTF-8 is provided.
BUG #1524:
Note how to escape a $ when using --replace.
BUG #1537:
Fix match bug caused by inner literal optimization.
BUG #1544:
ripgrep now uses asciidoctor instead of a2x to generate its man page.
BUG #1550:
Substantially reduce peak memory usage when searching wide directories.
BUG #1571:
Add note about configuration files in --type-{add,clear} docs.
BUG #1573:
Fix incorrect --count-matches output when using look-around.
ripgrep 12.0.1 is a small patch release that includes a minor bug fix relating
to superfluous error messages when searching git repositories with sub-modules.
This was a regression introduced in the 12.0.0 release.
Bug fixes:
BUG #1520:
Don't emit spurious error messages in git repositories with submodules.
ripgrep 12 is a new major version release of ripgrep that contains many bug
fixes, several important performance improvements and a few minor new features.
In a near future release, I am hoping to add an
indexing feature
to ripgrep, which will dramatically speed up searching by building an index.
Feedback would very much be appreciated, especially on the user experience
which will be difficult to get right.
This release has no known breaking changes.
Deprecations:
The --no-pcre2-unicode flag is deprecated. Instead, use the --no-unicode
flag, which applies to both the default regex engine and PCRE2. For now,
--no-pcre2-unicode and --pcre2-unicode are aliases to --no-unicode
and --unicode, respectively. The --[no-]pcre2-unicode flags may be
removed in a future release.
The --auto-hybrid-regex flag is deprecated. Instead, use the new --engine
flag with the auto value.
Performance improvements:
PERF #1087:
ripgrep is smarter when detected literals are whitespace.
PERF #1381:
Directory traversal is sped up with speculative ignore-file existence checks.
PERF cd8ec38a:
Improve inner literal detection to cover more cases more effectively.
e.g., +Sherlock Holmes + now has Sherlock Holmes extracted instead
of .
PERF 6a0e0147:
Improve literal detection when the -w/--word-regexp flag is used.
PERF ad97e9c9:
Improve overall performance of the -w/--word-regexp flag.
Feature enhancements:
Added or improved file type filtering for erb, diff, Gradle, HAML, Org,
Postscript, Skim, Slim, Slime, RPM Spec files, Typoscript, xml.
FEATURE #1370:
Add --include-zero flag that shows files searched without matches.
FEATURE #1390:
Add --no-context-separator flag that always hides context separators.
FEATURE #1414:
Add --no-require-git flag to allow ripgrep to respect gitignores anywhere.
FEATURE #1420:
Add --no-ignore-exclude to disregard rules in .git/info/exclude files.
FEATURE #1466:
Add --no-ignore-files flag to disable all --ignore-file flags.
FEATURE #1488:
Add '--engine' flag for easier switching between regex engines.
FEATURE 75cbe88f:
Add --no-unicode flag. This works on all supported regex engines.
Bug fixes:
BUG #1291:
ripgrep now works in non-existent directories.
BUG #1319:
Fix match bug due to errant literal detection.
BUG #1335:
Fixes a performance bug when searching plain text files with very long lines.
This was a serious performance regression in some cases.
BUG #1344:
Document usage of --type all.
BUG #1389:
Fixes a bug where ripgrep would panic when searching a symlinked directory.
BUG #1439:
Improve documentation for ripgrep's automatic stdin detection.
BUG #1441:
Remove CPU features from man page.
BUG #1442,
BUG #1478:
Improve documentation of the -g/--glob flag.
BUG #1445:
ripgrep now respects ignore rules from .git/info/exclude in worktrees.
BUG #1485:
Fish shell completions from the release Debian package are now installed to
/usr/share/fish/vendor_completions.d/rg.fish.
cargo users: drop do-build target where redundant
rust/cargo: replace "--frozen --locked" with "--offline" in various places The intent of "--frozen --locked" was to not use the network, but the new "--offline" option is better suited for this purpose. It for example allows us to patch Cargo.toml if necessary without having to regen checksums.
Rename EFFECTIVE_MAKE_JOBS -> _MAKE_JOBS_N, suggested by gdt. I am under the impression we use _THING to mean "defined by the implementation", which would be similar to the C meaning of __ prefix, rather than "private to this file".
Make cargo packages respect MAKE_JOBS
textproc/ripgrep: Update to 11.0.2 Breaking changes since 0.10.0: - ripgrep has tweaked its exit status codes to be more like GNU grep's. Namely, if a non-fatal error occurs during a search, then ripgrep will now always emit a 2 exit status code, regardless of whether a match is found or not. Previously, ripgrep would only emit a 2 exit status code for a catastrophic error (e.g., regex syntax error). One exception to this is if ripgrep is run with -q/--quiet. In that case, if an error occurs and a match is found, then ripgrep will exit with a 0 exit status code. - Supplying the -u/--unrestricted flag three times is now equivalent to supplying --no-ignore --hidden --binary. Previously, -uuu was equivalent to --no-ignore --hidden --text. The difference is that --binary disables binary file filtering without potentially dumping binary data into your terminal. That is, rg -uuu foo should now be equivalent to grep -r foo. - The avx-accel feature of ripgrep has been removed since it is no longer necessary. All uses of AVX in ripgrep are now enabled automatically via runtime CPU feature detection. The simd-accel feature does remain available (only for enabling SIMD for transcoding), however, it does increase compilation times substantially at the moment. See the release announcement for the complete list. https://github.com/BurntSushi/ripgrep/releases
ripgrep: update to 0.10.0
ripgrep 0.10.0:
This is a new minor version release of ripgrep that contains some major new
features, a huge number of bug fixes, and is the first release based on
libripgrep. The entirety of ripgrep's core search and printing code has been
rewritten and generalized so that anyone can make use of it.
Major new features include PCRE2 support, multi-line search and a JSON output
format.
BREAKING CHANGES:
The minimum version required to compile Rust has now changed to track the
latest stable version of Rust. Patch releases will continue to compile with
the same version of Rust as the previous patch release, but new minor
versions will use the current stable version of the Rust compile as its
minimum supported version.
The match semantics of -w/--word-regexp have changed slightly. They used
to be \b(?:<your pattern>)\b, but now it's
(?:^|\W)(?:<your pattern>)(?:$|\W). This matches the behavior of GNU grep
and is believed to be closer to the intended semantics of the flag. See
#389 for more details.
Feature enhancements:
FEATURE #162:
libripgrep is now a thing. The primary crate is
grep.
FEATURE #176:
Add -U/--multiline flag that permits matching over multiple lines.
FEATURE #188:
Add -P/--pcre2 flag that gives support for look-around and backreferences.
FEATURE #244:
Add --json flag that prints results in a JSON Lines format.
FEATURE #321:
Add --one-file-system flag to skip directories on different file systems.
FEATURE #404:
Add --sort and --sortr flag for more sorting. Deprecate --sort-files.
FEATURE #416:
Add --crlf flag to permit $ to work with carriage returns on Windows.
FEATURE #917:
The --trim flag strips prefix whitespace from all lines printed.
FEATURE #993:
Add --null-data flag, which makes ripgrep use NUL as a line terminator.
FEATURE #997:
The --passthru flag now works with the --replace flag.
FEATURE #1038-1:
Add --line-buffered and --block-buffered for forcing a buffer strategy.
FEATURE #1038-2:
Add --pre-glob for filtering files through the --pre flag.
Bug fixes:
BUG #2:
Searching with non-zero context can now use memory maps if appropriate.
BUG #200:
ripgrep will now stop correctly when its output pipe is closed.
BUG #389:
The -w/--word-regexp flag now works more intuitively.
BUG #643:
Detection of readable stdin has improved on Windows.
BUG #441,
BUG #690,
BUG #980:
Matching empty lines now works correctly in several corner cases.
BUG #764:
Color escape sequences now coalesce, which reduces output size.
BUG #842:
Add man page to binary Debian package.
BUG #922:
ripgrep is now more robust with respect to memory maps failing.
BUG #937:
Color escape sequences are no longer emitted for empty matches.
BUG #940:
Context from the --passthru flag should not impact process exit status.
BUG #984:
Fixes bug in ignore crate where first path was always treated as a symlink.
BUG #990:
Read stderr asynchronously when running a process.
BUG #1013:
Add compile time and runtime CPU features to --version output.
BUG #1028:
Don't complete bare pattern after -f in zsh.
ripgrep 0.9.0:
BREAKING CHANGES:
When --count and --only-matching are provided simultaneously, the
behavior of ripgrep is as if the --count-matches flag was given. That is,
the total number of matches is reported, where there may be multiple matches
per line. Previously, the behavior of ripgrep was to report the total number
of matching lines. (Note that this behavior diverges from the behavior of
GNU grep.)
Octal syntax is no longer supported. ripgrep previously accepted expressions
like \1 as syntax for matching U+0001, but ripgrep will now report an
error instead.
The --line-number-width flag has been removed. Its functionality was not
carefully considered with all ripgrep output formats.
See #795 for more
details.
Feature enhancements:
Added or improved file type filtering for Android, Bazel, Fuschia, Haskell,
Java and Puppet.
FEATURE #411:
Add a --stats flag, which emits aggregate statistics after search results.
FEATURE #646:
Add a --no-ignore-messages flag, which suppresses parse errors from reading
.ignore and .gitignore files.
FEATURE #702:
Support \u{..} Unicode escape sequences.
FEATURE #812:
Add -b/--byte-offset flag that shows the byte offset of each matching line.
FEATURE #814:
Add --count-matches flag, which is like --count, but for each match.
FEATURE #880:
Add a --no-column flag, which disables column numbers in the output.
FEATURE #898:
Add support for lz4 when using the -z/--search-zip flag.
FEATURE #924:
termcolor has moved to its own repository:
https://github.com/BurntSushi/termcolor
FEATURE #934:
Add a new flag, --no-ignore-global, that permits disabling global
gitignores.
FEATURE #967:
Rename --maxdepth to --max-depth for consistency. Keep --maxdepth for
backwards compatibility.
FEATURE #978:
Add a --pre option to filter inputs with an arbitrary program.
FEATURE fca9709d:
Improve zsh completion.
Bug fixes:
BUG #135:
Release portable binaries that conditionally use SSSE3, AVX2, etc., at
runtime.
BUG #268:
Print descriptive error message when trying to use look-around or
backreferences.
BUG #395:
Show comprehensible error messages for regexes like \s*{.
BUG #526:
Support backslash escapes in globs.
BUG #795:
Fix problems with --line-number-width by removing it.
BUG #832:
Clarify usage instructions for -f/--file flag.
BUG #835:
Fix small performance regression while crawling very large directory trees.
BUG #851:
Fix -S/--smart-case detection once and for all.
BUG #852:
Be robust with respect to ENOMEM errors returned by mmap.
BUG #853:
Upgrade grep crate to regex-syntax 0.6.0.
BUG #893:
Improve support for git submodules.
BUG #900:
When no patterns are given, ripgrep should never match anything.
BUG #907:
ripgrep will now stop traversing after the first file when --quiet --files
is used.
BUG #918:
Don't skip tar archives when -z/--search-zip is used.
BUG #934:
Don't respect gitignore files when searching outside git repositories.
BUG #948:
Use exit code 2 to indicate error, and use exit code 1 to indicate no
matches.
BUG #951:
Add stdin example to ripgrep usage documentation.
BUG #955:
Use buffered writing when not printing to a tty, which fixes a performance
regression.
BUG #957:
Improve the error message shown for --path separator / in some Windows
shells.
BUG #964:
Add a --no-fixed-strings flag to disable -F/--fixed-strings.
BUG #988:
Fix a bug in the ignore crate that prevented the use of explicit ignore
files after disabling all other ignore rules.
BUG #995:
Respect $XDG_CONFIG_DIR/git/config for detecting core.excludesFile.
ripgrep: use ${INSTALL_PROGRAM} instead of "cargo install"
This will make it respect pkgsrc strip(1) settings and also avoids
"cargo install" which can query the creates.io repo and break offline builds.
textproc/ripgrep: Install with cargo, rather than manually
lang/rust: Move common BUILD_DEPENDS in rust packages to cargo.mk
Add ripgrep in textproc directory. suggested by alnsn. thanks.