MyGit

13.0.0

BurntSushi/ripgrep

版本发布时间: 2021-06-12 20:27:16

BurntSushi/ripgrep最新发布版本:14.1.0(2024-01-07 03:41:59)

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).

In case you haven't heard of it before, ripgrep is a line-oriented search tool that recursively searches the current directory for a regex pattern. By default, ripgrep will respect gitignore rules and automatically skip hidden files/directories and binary files.

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:

Performance improvements:

Feature enhancements:

Bug fixes:

相关地址:原始地址 下载(tar) 下载(zip)

1、 ripgrep-13.0.0-arm-unknown-linux-gnueabihf.tar.gz 1.68MB

2、 ripgrep-13.0.0-i686-pc-windows-msvc.zip 1.52MB

3、 ripgrep-13.0.0-x86_64-apple-darwin.tar.gz 1.73MB

4、 ripgrep-13.0.0-x86_64-pc-windows-gnu.zip 9.36MB

5、 ripgrep-13.0.0-x86_64-pc-windows-msvc.zip 1.65MB

6、 ripgrep-13.0.0-x86_64-unknown-linux-musl.tar.gz 2.01MB

7、 ripgrep_13.0.0_amd64.deb 1.5MB

查看:2021-06-12发行的版本