Skip to content
Myr

CHANGELOG.md

This file

Path

CHANGELOG.md

1,870 lines · 87.9 KiB · Markdown

Last changed by

changelog: start next sectionAndrew Gallantbefore adoption5e16a5c

History of this file

Take it

Show it rendered

1TBD2===3Unreleased changes. Release notes have not yet been written.45615.2.0 (2026-07-15)7===================8This release fixes a number of bugs related to gitignore matching as well as9some performance improvements in directory tree traversal.1011Platform support:1213* `aarch64-unknown-linux-musl` is now included in the release binaries for14  ripgrep.1516Performance improvements:1718* [PERF #3293](https://github.com/BurntSushi/ripgrep/issues/3293):19  Improves directory traversal time on very large corpora.2021Feature enhancements:2223* [FEATURE #3275](https://github.com/BurntSushi/ripgrep/issues/3275):24  ripgrep now respects `GIT_CONFIG_GLOBAL` and `GIT_CONFIG_SYSTEM`.2526Bug fixes:2728* [BUG #3212](https://github.com/BurntSushi/ripgrep/pull/3212):29  Don't check for the existence of `.jj` when `--no-ignore` is used.30* [BUG #3320](https://github.com/BurntSushi/ripgrep/pull/3419),31  [BUG #3376](https://github.com/BurntSushi/ripgrep/pull/3376),32  [BUG #3419](https://github.com/BurntSushi/ripgrep/pull/3419):33  Fix gitignore matching bug when searching across multiple directories.34353615.1.0 (2025-10-22)37===================38This is a small release that fixes a bug with how ripgrep handles line39buffering. This might manifest as ripgrep printing output later than you40expect or not working correctly with `tail -f` (even if you're using the41`--line-buffered` flag).4243Bug fixes:4445* [BUG #3194](https://github.com/BurntSushi/ripgrep/issues/3194):46  Fix a regression with `--line-buffered` introduced in ripgrep 15.0.0.4748Feature enhancements:4950* [FEATURE #3192](https://github.com/BurntSushi/ripgrep/pull/3192):51  Add hyperlink alias for Cursor.52535415.0.0 (2025-10-15)55===================56ripgrep 15 is a new major version release of ripgrep that mostly has bug fixes,57some minor performance improvements and minor new features. Here are some58highlights:5960* Several bugs around gitignore matching have been fixed. This includes61  a commonly reported bug related to applying gitignore rules from parent62  directories.63* A memory usage regression when handling very large gitignore files has been64  fixed.65* `rg -vf file`, where `file` is empty, now matches everything.66* The `-r/--replace` flag now works with `--json`.67* A subset of Jujutsu (`jj`) repositories are now treated as if they were git68  repositories. That is, ripgrep will respect `jj`'s gitignores.69* Globs can now use nested curly braces.7071Platform support:7273* `aarch64` for Windows now has release artifacts.74* `powerpc64` no longer has release artifacts generated for it. The CI75  release workflow stopped working, and I didn't deem it worth my time to76  debug it. If someone wants this and can test it, I'd be happy to add it77  back.78* ripgrep binaries are now compiled with full LTO enabled. You may notice79  small performance improvements from this and a modest decrease in binary80  size.8182Performance improvements:8384* [PERF #2111](https://github.com/BurntSushi/ripgrep/issues/2111):85  Don't resolve helper binaries on Windows when `-z/--search-zip` isn't used.86* [PERF #2865](https://github.com/BurntSushi/ripgrep/pull/2865):87  Avoid using path canonicalization on Windows when emitting hyperlinks.8889Bug fixes:9091* [BUG #829](https://github.com/BurntSushi/ripgrep/issues/829),92  [BUG #2731](https://github.com/BurntSushi/ripgrep/issues/2731),93  [BUG #2747](https://github.com/BurntSushi/ripgrep/issues/2747),94  [BUG #2770](https://github.com/BurntSushi/ripgrep/issues/2770),95  [BUG #2778](https://github.com/BurntSushi/ripgrep/issues/2778),96  [BUG #2836](https://github.com/BurntSushi/ripgrep/issues/2836),97  [BUG #2933](https://github.com/BurntSushi/ripgrep/pull/2933),98  [BUG #3067](https://github.com/BurntSushi/ripgrep/pull/3067):99  Fix bug related to gitignores from parent directories.100* [BUG #1332](https://github.com/BurntSushi/ripgrep/issues/1332),101  [BUG #3001](https://github.com/BurntSushi/ripgrep/issues/3001):102  Make `rg -vf file` where `file` is empty match everything.103* [BUG #2177](https://github.com/BurntSushi/ripgrep/issues/2177):104  Ignore a UTF-8 BOM marker at the start of `.gitignore` (and similar files).105* [BUG #2750](https://github.com/BurntSushi/ripgrep/issues/2750):106  Fix memory usage regression for some truly large gitignore files.107* [BUG #2944](https://github.com/BurntSushi/ripgrep/pull/2944):108  Fix a bug where the "bytes searched" in `--stats` output could be incorrect.109* [BUG #2990](https://github.com/BurntSushi/ripgrep/issues/2990):110  Fix a bug where ripgrep would mishandle globs that ended with a `.`.111* [BUG #2094](https://github.com/BurntSushi/ripgrep/issues/2094),112  [BUG #3076](https://github.com/BurntSushi/ripgrep/issues/3076):113  Fix bug with `-m/--max-count` and `-U/--multiline` showing too many matches.114* [BUG #3100](https://github.com/BurntSushi/ripgrep/pull/3100):115  Preserve line terminators when using `-r/--replace` flag.116* [BUG #3108](https://github.com/BurntSushi/ripgrep/issues/3108):117  Fix a bug where `-q --files-without-match` inverted the exit code.118* [BUG #3131](https://github.com/BurntSushi/ripgrep/issues/3131):119  Document inconsistency between `-c/--count` and `--files-with-matches`.120* [BUG #3135](https://github.com/BurntSushi/ripgrep/issues/3135):121  Fix rare panic for some classes of large regexes on large haystacks.122* [BUG #3140](https://github.com/BurntSushi/ripgrep/issues/3140):123  Ensure hyphens in flag names are escaped in the roff text for the man page.124* [BUG #3155](https://github.com/BurntSushi/ripgrep/issues/3155):125  Statically compile PCRE2 into macOS release artifacts on `aarch64`.126* [BUG #3173](https://github.com/BurntSushi/ripgrep/issues/3173):127  Fix ancestor ignore filter bug when searching whitelisted hidden files.128* [BUG #3178](https://github.com/BurntSushi/ripgrep/discussions/3178):129  Fix bug causing incorrect summary statistics with `--json` flag.130* [BUG #3179](https://github.com/BurntSushi/ripgrep/issues/3179):131  Fix gitignore bug when searching absolute paths with global gitignores.132* [BUG #3180](https://github.com/BurntSushi/ripgrep/issues/3180):133  Fix a panicking bug when using `-U/--multiline` and `-r/--replace`.134135Feature enhancements:136137* Many enhancements to the default set of file types available for filtering.138* [FEATURE #1872](https://github.com/BurntSushi/ripgrep/issues/1872):139  Make `-r/--replace` work with `--json`.140* [FEATURE #2708](https://github.com/BurntSushi/ripgrep/pull/2708):141  Completions for the fish shell take ripgrep's config file into account.142* [FEATURE #2841](https://github.com/BurntSushi/ripgrep/pull/2841):143  Add `italic` to the list of available style attributes in `--color`.144* [FEATURE #2842](https://github.com/BurntSushi/ripgrep/pull/2842):145  Directories containing `.jj` are now treated as git repositories.146* [FEATURE #2849](https://github.com/BurntSushi/ripgrep/pull/2849):147  When using multithreading, schedule files to search in order given on CLI.148* [FEATURE #2943](https://github.com/BurntSushi/ripgrep/issues/2943):149  Add `aarch64` release artifacts for Windows.150* [FEATURE #3024](https://github.com/BurntSushi/ripgrep/issues/3024):151  Add `highlight` color type, for styling non-matching text in a matching line.152* [FEATURE #3048](https://github.com/BurntSushi/ripgrep/pull/3048):153  Globs in ripgrep (and the `globset` crate) now support nested alternates.154* [FEATURE #3096](https://github.com/BurntSushi/ripgrep/pull/3096):155  Improve completions for `--hyperlink-format` in bash and fish.156* [FEATURE #3102](https://github.com/BurntSushi/ripgrep/pull/3102):157  Improve completions for `--hyperlink-format` in zsh.15815916014.1.1 (2024-09-08)161===================162This is a minor release with a bug fix for a matching bug. In particular, a bug163was found that could cause ripgrep to ignore lines that should match. That is,164false negatives. It is difficult to characterize the specific set of regexes165in which this occurs as it requires multiple different optimization strategies166to collide and produce an incorrect result. But as one reported example, in167ripgrep, the regex `(?i:e.x|ex)` does not match `e-x` when it should. (This168bug is a result of an inner literal optimization performed in the `grep-regex`169crate and not in the `regex` crate.)170171Bug fixes:172173* [BUG #2884](https://github.com/BurntSushi/ripgrep/issues/2884):174  Fix bug where ripgrep could miss some matches that it should report.175176Miscellaneous:177178* [MISC #2748](https://github.com/BurntSushi/ripgrep/issues/2748):179  Remove ripgrep's `simd-accel` feature because it was frequently broken.18018118214.1.0 (2024-01-06)183===================184This is a minor release with a few small new features and bug fixes. This185release contains a bug fix for unbounded memory growth while walking a186directory tree. This release also includes improvements to the completions for187the `fish` shell, and release binaries for several additional ARM targets.188189Bug fixes:190191* [BUG #2664](https://github.com/BurntSushi/ripgrep/issues/2690):192  Fix unbounded memory growth in the `ignore` crate.193194Feature enhancements:195196* Added or improved file type filtering for Lean and Meson.197* [FEATURE #2684](https://github.com/BurntSushi/ripgrep/issues/2684):198  Improve completions for the `fish` shell.199* [FEATURE #2702](https://github.com/BurntSushi/ripgrep/pull/2702):200  Add release binaries for `armv7-unknown-linux-gnueabihf`,201  `armv7-unknown-linux-musleabihf` and `armv7-unknown-linux-musleabi`.20220320414.0.3 (2023-11-28)205===================206This is a patch release with a bug fix for the `--sortr` flag.207208Bug fixes:209210* [BUG #2664](https://github.com/BurntSushi/ripgrep/issues/2664):211  Fix `--sortr=path`. I left a `todo!()` in the source. Oof.21221321414.0.2 (2023-11-27)215===================216This is a patch release with a few small bug fixes.217218Bug fixes:219220* [BUG #2654](https://github.com/BurntSushi/ripgrep/issues/2654):221  Fix `deb` release sha256 sum file.222* [BUG #2658](https://github.com/BurntSushi/ripgrep/issues/2658):223  Fix partial regression in the behavior of `--null-data --line-regexp`.224* [BUG #2659](https://github.com/BurntSushi/ripgrep/issues/2659):225  Fix Fish shell completions.226* [BUG #2662](https://github.com/BurntSushi/ripgrep/issues/2662):227  Fix typo in documentation for `-i/--ignore-case`.22822923014.0.1 (2023-11-26)231===================232This a patch release meant to fix `cargo install ripgrep` on Windows.233234Bug fixes:235236* [BUG #2653](https://github.com/BurntSushi/ripgrep/issues/2653):237  Include `pkg/windows/Manifest.xml` in crate package.23823924014.0.0 (2023-11-26)241===================242ripgrep 14 is a new major version release of ripgrep that has some new243features, performance improvements and a lot of bug fixes.244245The headlining feature in this release is hyperlink support. In this release,246they are an opt-in feature but may change to an opt-out feature in the future.247To enable them, try passing `--hyperlink-format default`. If you use [VS Code],248then try passing `--hyperlink-format vscode`. Please [report your experience249with hyperlinks][report-hyperlinks], positive or negative.250251[VS Code]: https://code.visualstudio.com/252[report-hyperlinks]: https://github.com/BurntSushi/ripgrep/discussions/2611253254Another headlining development in this release is that it contains a rewrite255of its regex engine. You generally shouldn't notice any changes, except for256some searches may get faster. You can read more about the [regex engine rewrite257on my blog][regex-internals]. Please [report your performance improvements or258regressions that you notice][report-perf].259260[report-perf]: https://github.com/BurntSushi/ripgrep/discussions/2652261262Finally, ripgrep switched the library it uses for argument parsing. Users263should not notice a difference in most cases (error messages have changed264somewhat), but flag overrides should generally be more consistent. For example,265things like `--no-ignore --ignore-vcs` work as one would expect (disables all266filtering related to ignore rules except for rules found in version control267systems such as `git`).268269[regex-internals]: https://blog.burntsushi.net/regex-internals/270271**BREAKING CHANGES**:272273* `rg -C1 -A2` used to be equivalent to `rg -A2`, but now it is equivalent to274  `rg -B1 -A2`. That is, `-A` and `-B` no longer completely override `-C`.275  Instead, they only partially override `-C`.276277Build process changes:278279* ripgrep's shell completions and man page are now created by running ripgrep280with a new `--generate` flag. For example, `rg --generate man` will write a281man page in `roff` format on stdout. The release archives have not changed.282* The optional build dependency on `asciidoc` or `asciidoctor` has been283dropped. Previously, it was used to produce ripgrep's man page. ripgrep now284owns this process itself by writing `roff` directly.285286Performance improvements:287288* [PERF #1746](https://github.com/BurntSushi/ripgrep/issues/1746):289  Make some cases with inner literals faster.290* [PERF #1760](https://github.com/BurntSushi/ripgrep/issues/1760):291  Make most searches with `\b` look-arounds (among others) much faster.292* [PERF #2591](https://github.com/BurntSushi/ripgrep/pull/2591):293  Parallel directory traversal now uses work stealing for faster searches.294* [PERF #2642](https://github.com/BurntSushi/ripgrep/pull/2642):295  Parallel directory traversal has some contention reduced.296297Feature enhancements:298299* Added or improved file type filtering for Ada, DITA, Elixir, Fuchsia, Gentoo,300  Gradle, GraphQL, Markdown, Prolog, Raku, TypeScript, USD, V301* [FEATURE #665](https://github.com/BurntSushi/ripgrep/issues/665):302  Add a new `--hyperlink-format` flag that turns file paths into hyperlinks.303* [FEATURE #1709](https://github.com/BurntSushi/ripgrep/issues/1709):304  Improve documentation of ripgrep's behavior when stdout is a tty.305* [FEATURE #1737](https://github.com/BurntSushi/ripgrep/issues/1737):306  Provide binaries for Apple silicon.307* [FEATURE #1790](https://github.com/BurntSushi/ripgrep/issues/1790):308  Add new `--stop-on-nonmatch` flag.309* [FEATURE #1814](https://github.com/BurntSushi/ripgrep/issues/1814):310  Flags are now categorized in `-h/--help` output and ripgrep's man page.311* [FEATURE #1838](https://github.com/BurntSushi/ripgrep/issues/1838):312  An error is shown when searching for NUL bytes with binary detection enabled.313* [FEATURE #2195](https://github.com/BurntSushi/ripgrep/issues/2195):314  When `extra-verbose` mode is enabled in zsh, show extra file type info.315* [FEATURE #2298](https://github.com/BurntSushi/ripgrep/issues/2298):316  Add instructions for installing ripgrep using `cargo binstall`.317* [FEATURE #2409](https://github.com/BurntSushi/ripgrep/pull/2409):318  Added installation instructions for `winget`.319* [FEATURE #2425](https://github.com/BurntSushi/ripgrep/pull/2425):320  Shell completions (and man page) can be created via `rg --generate`.321* [FEATURE #2524](https://github.com/BurntSushi/ripgrep/issues/2524):322  The `--debug` flag now indicates whether stdin or `./` is being searched.323* [FEATURE #2643](https://github.com/BurntSushi/ripgrep/issues/2643):324  Make `-d` a short flag for `--max-depth`.325* [FEATURE #2645](https://github.com/BurntSushi/ripgrep/issues/2645):326  The `--version` output will now also contain PCRE2 availability information.327328Bug fixes:329330* [BUG #884](https://github.com/BurntSushi/ripgrep/issues/884):331  Don't error when `-v/--invert-match` is used multiple times.332* [BUG #1275](https://github.com/BurntSushi/ripgrep/issues/1275):333  Fix bug with `\b` assertion in the regex engine.334* [BUG #1376](https://github.com/BurntSushi/ripgrep/issues/1376):335  Using `--no-ignore --ignore-vcs` now works as one would expect.336* [BUG #1622](https://github.com/BurntSushi/ripgrep/issues/1622):337  Add note about error messages to `-z/--search-zip` documentation.338* [BUG #1648](https://github.com/BurntSushi/ripgrep/issues/1648):339  Fix bug where sometimes short flags with values, e.g., `-M 900`, would fail.340* [BUG #1701](https://github.com/BurntSushi/ripgrep/issues/1701):341  Fix bug where some flags could not be repeated.342* [BUG #1757](https://github.com/BurntSushi/ripgrep/issues/1757):343  Fix bug when searching a sub-directory didn't have ignores applied correctly.344* [BUG #1891](https://github.com/BurntSushi/ripgrep/issues/1891):345  Fix bug when using `-w` with a regex that can match the empty string.346* [BUG #1911](https://github.com/BurntSushi/ripgrep/issues/1911):347  Disable mmap searching in all non-64-bit environments.348* [BUG #1966](https://github.com/BurntSushi/ripgrep/issues/1966):349  Fix bug where ripgrep can panic when printing to stderr.350* [BUG #2046](https://github.com/BurntSushi/ripgrep/issues/2046):351  Clarify that `--pre` can accept any kind of path in the documentation.352* [BUG #2108](https://github.com/BurntSushi/ripgrep/issues/2108):353  Improve docs for `-r/--replace` syntax.354* [BUG #2198](https://github.com/BurntSushi/ripgrep/issues/2198):355  Fix bug where `--no-ignore-dot` would not ignore `.rgignore`.356* [BUG #2201](https://github.com/BurntSushi/ripgrep/issues/2201):357  Improve docs for `-r/--replace` flag.358* [BUG #2288](https://github.com/BurntSushi/ripgrep/issues/2288):359  `-A` and `-B` now only each partially override `-C`.360* [BUG #2236](https://github.com/BurntSushi/ripgrep/issues/2236):361  Fix gitignore parsing bug where a trailing `\/` resulted in an error.362* [BUG #2243](https://github.com/BurntSushi/ripgrep/issues/2243):363  Fix `--sort` flag for values other than `path`.364* [BUG #2246](https://github.com/BurntSushi/ripgrep/issues/2246):365  Add note in `--debug` logs when binary files are ignored.366* [BUG #2337](https://github.com/BurntSushi/ripgrep/issues/2337):367  Improve docs to mention that `--stats` is always implied by `--json`.368* [BUG #2381](https://github.com/BurntSushi/ripgrep/issues/2381):369  Make `-p/--pretty` override flags like `--no-line-number`.370* [BUG #2392](https://github.com/BurntSushi/ripgrep/issues/2392):371  Improve global git config parsing of the `excludesFile` field.372* [BUG #2418](https://github.com/BurntSushi/ripgrep/pull/2418):373  Clarify sorting semantics of `--sort=path`.374* [BUG #2458](https://github.com/BurntSushi/ripgrep/pull/2458):375  Make `--trim` run before `-M/--max-columns` takes effect.376* [BUG #2479](https://github.com/BurntSushi/ripgrep/issues/2479):377  Add documentation about `.ignore`/`.rgignore` files in parent directories.378* [BUG #2480](https://github.com/BurntSushi/ripgrep/issues/2480):379  Fix bug when using inline regex flags with `-e/--regexp`.380* [BUG #2505](https://github.com/BurntSushi/ripgrep/issues/2505):381  Improve docs for `--vimgrep` by mentioning footguns and some work-arounds.382* [BUG #2519](https://github.com/BurntSushi/ripgrep/issues/2519):383  Fix incorrect default value in documentation for `--field-match-separator`.384* [BUG #2523](https://github.com/BurntSushi/ripgrep/issues/2523):385  Make executable searching take `.com` into account on Windows.386* [BUG #2574](https://github.com/BurntSushi/ripgrep/issues/2574):387  Fix bug in `-w/--word-regexp` that would result in incorrect match offsets.388* [BUG #2623](https://github.com/BurntSushi/ripgrep/issues/2623):389  Fix a number of bugs with the `-w/--word-regexp` flag.390* [BUG #2636](https://github.com/BurntSushi/ripgrep/pull/2636):391  Strip release binaries for macOS.39239339413.0.0 (2021-06-12)395===================396ripgrep 13 is a new major version release of ripgrep that primarily contains397bug fixes, some performance improvements and a few minor breaking changes.398There is also a fix for a security vulnerability on Windows399([CVE-2021-3013](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-3013)).400401Some highlights:402403A new short flag, `-.`, has been added. It is an alias for the `--hidden` flag,404which instructs ripgrep to search hidden files and directories.405406ripgrep is now using a new407[vectorized implementation of `memmem`](https://github.com/BurntSushi/memchr/pull/82),408which accelerates many common searches. If you notice any performance409regressions (or major improvements), I'd love to hear about them through an410issue report!411412Also, for Windows users targeting MSVC, Cargo will now build fully static413executables of ripgrep. The release binaries for ripgrep 13 have been compiled414using this configuration.415416**BREAKING CHANGES**:417418**Binary detection output has changed slightly.**419420In this release, a small tweak has been made to the output format when a binary421file is detected. Previously, it looked like this:422423```424Binary file FOO matches (found "\0" byte around offset XXX)425```426427Now it looks like this:428429```430FOO: binary file matches (found "\0" byte around offset XXX)431```432433**vimgrep output in multi-line now only prints the first line for each match.**434435See [issue 1866](https://github.com/BurntSushi/ripgrep/issues/1866) for more436discussion on this. Previously, every line in a match was duplicated, even437when it spanned multiple lines. There are no changes to vimgrep output when438multi-line mode is disabled.439440**In multi-line mode, --count is now equivalent to --count-matches.**441442This appears to match how `pcre2grep` implements `--count`. Previously, ripgrep443would produce outright incorrect counts. Another alternative would be to simply444count the number of lines---even if it's more than the number of matches---but445that seems highly unintuitive.446447**FULL LIST OF FIXES AND IMPROVEMENTS:**448449Security fixes:450451* [CVE-2021-3013](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-3013):452  Fixes a security hole on Windows where running ripgrep with either the453  `-z/--search-zip` or `--pre` flags can result in running arbitrary454  executables from the current directory.455* [VULN #1773](https://github.com/BurntSushi/ripgrep/issues/1773):456  This is the public facing issue tracking CVE-2021-3013. ripgrep's README457  now contains a section describing how to report a vulnerability.458459Performance improvements:460461* [PERF #1657](https://github.com/BurntSushi/ripgrep/discussions/1657):462  Check if a file should be ignored first before issuing stat calls.463* [PERF memchr#82](https://github.com/BurntSushi/memchr/pull/82):464  ripgrep now uses a new vectorized implementation of `memmem`.465466Feature enhancements:467468* Added or improved file type filtering for ASP, Bazel, dvc, FlatBuffers,469  Futhark, minified files, Mint, pofiles (from GNU gettext) Racket, Red, Ruby,470  VCL, Yang.471* [FEATURE #1404](https://github.com/BurntSushi/ripgrep/pull/1404):472  ripgrep now prints a warning if nothing is searched.473* [FEATURE #1613](https://github.com/BurntSushi/ripgrep/pull/1613):474  Cargo will now produce static executables on Windows when using MSVC.475* [FEATURE #1680](https://github.com/BurntSushi/ripgrep/pull/1680):476  Add `-.` as a short flag alias for `--hidden`.477* [FEATURE #1842](https://github.com/BurntSushi/ripgrep/issues/1842):478  Add `--field-{context,match}-separator` for customizing field delimiters.479* [FEATURE #1856](https://github.com/BurntSushi/ripgrep/pull/1856):480  The README now links to a481  [Spanish translation](https://github.com/UltiRequiem/traducciones/tree/master/ripgrep).482483Bug fixes:484485* [BUG #1277](https://github.com/BurntSushi/ripgrep/issues/1277):486  Document cygwin path translation behavior in the FAQ.487* [BUG #1739](https://github.com/BurntSushi/ripgrep/issues/1739):488  Fix bug where replacements were buggy if the regex matched a line terminator.489* [BUG #1311](https://github.com/BurntSushi/ripgrep/issues/1311):490  Fix multi-line bug where a search & replace for `\n` didn't work as expected.491* [BUG #1401](https://github.com/BurntSushi/ripgrep/issues/1401):492  Fix buggy interaction between PCRE2 look-around and `-o/--only-matching`.493* [BUG #1412](https://github.com/BurntSushi/ripgrep/issues/1412):494  Fix multi-line bug with searches using look-around past matching lines.495* [BUG #1577](https://github.com/BurntSushi/ripgrep/issues/1577):496  Fish shell completions will continue to be auto-generated.497* [BUG #1642](https://github.com/BurntSushi/ripgrep/issues/1642):498  Fixes a bug where using `-m` and `-A` printed more matches than the limit.499* [BUG #1703](https://github.com/BurntSushi/ripgrep/issues/1703):500  Clarify the function of `-u/--unrestricted`.501* [BUG #1708](https://github.com/BurntSushi/ripgrep/issues/1708):502  Clarify how `-S/--smart-case` works.503* [BUG #1730](https://github.com/BurntSushi/ripgrep/issues/1730):504  Clarify that CLI invocation must always be valid, regardless of config file.505* [BUG #1741](https://github.com/BurntSushi/ripgrep/issues/1741):506  Fix stdin detection when using PowerShell in UNIX environments.507* [BUG #1756](https://github.com/BurntSushi/ripgrep/pull/1756):508  Fix bug where `foo/**` would match `foo`, but it shouldn't.509* [BUG #1765](https://github.com/BurntSushi/ripgrep/issues/1765):510  Fix panic when `--crlf` is used in some cases.511* [BUG #1638](https://github.com/BurntSushi/ripgrep/issues/1638):512  Correctly sniff UTF-8 and do transcoding, like we do for UTF-16.513* [BUG #1816](https://github.com/BurntSushi/ripgrep/issues/1816):514  Add documentation for glob alternate syntax, e.g., `{a,b,..}`.515* [BUG #1847](https://github.com/BurntSushi/ripgrep/issues/1847):516  Clarify how the `--hidden` flag works.517* [BUG #1866](https://github.com/BurntSushi/ripgrep/issues/1866#issuecomment-841635553):518  Fix bug when computing column numbers in `--vimgrep` mode.519* [BUG #1868](https://github.com/BurntSushi/ripgrep/issues/1868):520  Fix bug where `--passthru` and `-A/-B/-C` did not override each other.521* [BUG #1869](https://github.com/BurntSushi/ripgrep/pull/1869):522  Clarify docs for `--files-with-matches` and `--files-without-match`.523* [BUG #1878](https://github.com/BurntSushi/ripgrep/issues/1878):524  Fix bug where `\A` could produce unanchored matches in multiline search.525* [BUG 94e4b8e3](https://github.com/BurntSushi/ripgrep/commit/94e4b8e3):526  Fix column numbers with `--vimgrep` is used with `-U/--multiline`.52752852912.1.1 (2020-05-29)530===================531ripgrep 12.1.1 is a patch release that fixes a couple small bugs. In532particular, the ripgrep 12.1.0 release did not tag new releases for all of its533in-tree dependencies. As a result, ripgrep built dependencies from crates.io534would produce a different build than compiling ripgrep from source on the535`12.1.0` tag. Namely, some crates like `grep-cli` had unreleased changes.536537Bug fixes:538539* [BUG #1581](https://github.com/BurntSushi/ripgrep/issues/1581):540  Corrects some egregious markup output in `--help`.541* [BUG #1591](https://github.com/BurntSushi/ripgrep/issues/1591):542  Mention the special `$0` capture group in docs for the `-r/--replace` flag.543* [BUG #1602](https://github.com/BurntSushi/ripgrep/issues/1602):544  Fix failing test resulting from out-of-sync dependencies.54554654712.1.0 (2020-05-09)548===================549ripgrep 12.1.0 is a small minor version release that mostly includes bug fixes550and documentation improvements. This release also contains some important551notices for downstream packagers.552553**Notices for downstream ripgrep package maintainers:**554555* Fish shell completions will be removed in the ripgrep 13 release.556  See [#1577](https://github.com/BurntSushi/ripgrep/issues/1577)557  for more details.558* ripgrep has switched from `a2x` to `asciidoctor` to generate the man page.559  If `asciidoctor` is not present, then ripgrep will currently fall back to560  `a2x`. Support for `a2x` will be dropped in the ripgrep 13 release.561  See [#1544](https://github.com/BurntSushi/ripgrep/issues/1544)562  for more details.563564Feature enhancements:565566* [FEATURE #1547](https://github.com/BurntSushi/ripgrep/pull/1547):567  Support decompressing `.Z` files via `uncompress`.568569Bug fixes:570571* [BUG #1252](https://github.com/BurntSushi/ripgrep/issues/1252):572  Add a section on the `--pre` flag to the GUIDE.573* [BUG #1339](https://github.com/BurntSushi/ripgrep/issues/1339):574  Improve error message when a pattern with invalid UTF-8 is provided.575* [BUG #1524](https://github.com/BurntSushi/ripgrep/issues/1524):576  Note how to escape a `$` when using `--replace`.577* [BUG #1537](https://github.com/BurntSushi/ripgrep/issues/1537):578  Fix match bug caused by inner literal optimization.579* [BUG #1544](https://github.com/BurntSushi/ripgrep/issues/1544):580  ripgrep now uses `asciidoctor` instead of `a2x` to generate its man page.581* [BUG #1550](https://github.com/BurntSushi/ripgrep/issues/1550):582  Substantially reduce peak memory usage when searching wide directories.583* [BUG #1571](https://github.com/BurntSushi/ripgrep/issues/1571):584  Add note about configuration files in `--type-{add,clear}` docs.585* [BUG #1573](https://github.com/BurntSushi/ripgrep/issues/1573):586  Fix incorrect `--count-matches` output when using look-around.58758858912.0.1 (2020-03-29)590===================591ripgrep 12.0.1 is a small patch release that includes a minor bug fix relating592to superfluous error messages when searching git repositories with sub-modules.593This was a regression introduced in the 12.0.0 release.594595Bug fixes:596597* [BUG #1520](https://github.com/BurntSushi/ripgrep/issues/1520):598  Don't emit spurious error messages in git repositories with submodules.59960060112.0.0 (2020-03-15)602===================603ripgrep 12 is a new major version release of ripgrep that contains many bug604fixes, several important performance improvements and a few minor new features.605606In a near future release, I am hoping to add an607[indexing feature](https://github.com/BurntSushi/ripgrep/issues/1497)608to ripgrep, which will dramatically speed up searching by building an index.609Feedback would very much be appreciated, especially on the user experience610which will be difficult to get right.611612This release has no known breaking changes.613614Deprecations:615616* The `--no-pcre2-unicode` flag is deprecated. Instead, use the `--no-unicode`617  flag, which applies to both the default regex engine and PCRE2. For now,618  `--no-pcre2-unicode` and `--pcre2-unicode` are aliases to `--no-unicode`619  and `--unicode`, respectively. The `--[no-]pcre2-unicode` flags may be620  removed in a future release.621* The `--auto-hybrid-regex` flag is deprecated. Instead, use the new `--engine`622  flag with the `auto` value.623624Performance improvements:625626* [PERF #1087](https://github.com/BurntSushi/ripgrep/pull/1087):627  ripgrep is smarter when detected literals are whitespace.628* [PERF #1381](https://github.com/BurntSushi/ripgrep/pull/1381):629  Directory traversal is sped up with speculative ignore-file existence checks.630* [PERF cd8ec38a](https://github.com/BurntSushi/ripgrep/commit/cd8ec38a):631  Improve inner literal detection to cover more cases more effectively.632  e.g., ` +Sherlock Holmes +` now has ` Sherlock Holmes ` extracted instead633  of ` `.634* [PERF 6a0e0147](https://github.com/BurntSushi/ripgrep/commit/6a0e0147):635  Improve literal detection when the `-w/--word-regexp` flag is used.636* [PERF ad97e9c9](https://github.com/BurntSushi/ripgrep/commit/ad97e9c9):637  Improve overall performance of the `-w/--word-regexp` flag.638639Feature enhancements:640641* Added or improved file type filtering for erb, diff, Gradle, HAML, Org,642  Postscript, Skim, Slim, Slime, RPM Spec files, Typoscript, xml.643* [FEATURE #1370](https://github.com/BurntSushi/ripgrep/pull/1370):644  Add `--include-zero` flag that shows files searched without matches.645* [FEATURE #1390](https://github.com/BurntSushi/ripgrep/pull/1390):646  Add `--no-context-separator` flag that always hides context separators.647* [FEATURE #1414](https://github.com/BurntSushi/ripgrep/pull/1414):648  Add `--no-require-git` flag to allow ripgrep to respect gitignores anywhere.649* [FEATURE #1420](https://github.com/BurntSushi/ripgrep/pull/1420):650  Add `--no-ignore-exclude` to disregard rules in `.git/info/exclude` files.651* [FEATURE #1466](https://github.com/BurntSushi/ripgrep/pull/1466):652  Add `--no-ignore-files` flag to disable all `--ignore-file` flags.653* [FEATURE #1488](https://github.com/BurntSushi/ripgrep/pull/1488):654  Add '--engine' flag for easier switching between regex engines.655* [FEATURE 75cbe88f](https://github.com/BurntSushi/ripgrep/commit/75cbe88f):656  Add `--no-unicode` flag. This works on all supported regex engines.657658Bug fixes:659660* [BUG #1291](https://github.com/BurntSushi/ripgrep/issues/1291):661  ripgrep now works in non-existent directories.662* [BUG #1319](https://github.com/BurntSushi/ripgrep/issues/1319):663  Fix match bug due to errant literal detection.664* [**BUG #1335**](https://github.com/BurntSushi/ripgrep/issues/1335):665  Fixes a performance bug when searching plain text files with very long lines.666  This was a serious performance regression in some cases.667* [BUG #1344](https://github.com/BurntSushi/ripgrep/issues/1344):668  Document usage of `--type all`.669* [BUG #1389](https://github.com/BurntSushi/ripgrep/issues/1389):670  Fixes a bug where ripgrep would panic when searching a symlinked directory.671* [BUG #1439](https://github.com/BurntSushi/ripgrep/issues/1439):672  Improve documentation for ripgrep's automatic stdin detection.673* [BUG #1441](https://github.com/BurntSushi/ripgrep/issues/1441):674  Remove CPU features from man page.675* [BUG #1442](https://github.com/BurntSushi/ripgrep/issues/1442),676  [BUG #1478](https://github.com/BurntSushi/ripgrep/issues/1478):677  Improve documentation of the `-g/--glob` flag.678* [BUG #1445](https://github.com/BurntSushi/ripgrep/issues/1445):679  ripgrep now respects ignore rules from .git/info/exclude in worktrees.680* [BUG #1485](https://github.com/BurntSushi/ripgrep/issues/1485):681  Fish shell completions from the release Debian package are now installed to682  `/usr/share/fish/vendor_completions.d/rg.fish`.68368468511.0.2 (2019-08-01)686===================687ripgrep 11.0.2 is a new patch release that fixes a few bugs, including a688performance regression and a matching bug when using the `-F/--fixed-strings`689flag.690691Feature enhancements:692693* [FEATURE #1293](https://github.com/BurntSushi/ripgrep/issues/1293):694  Added `--glob-case-insensitive` flag that makes `--glob` behave as `--iglob`.695696Bug fixes:697698* [BUG #1246](https://github.com/BurntSushi/ripgrep/issues/1246):699  Add translations to README, starting with an unofficial Chinese translation.700* [BUG #1259](https://github.com/BurntSushi/ripgrep/issues/1259):701  Fix bug where the last byte of a `-f file` was stripped if it wasn't a `\n`.702* [BUG #1261](https://github.com/BurntSushi/ripgrep/issues/1261):703  Document that no error is reported when searching for `\n` with `-P/--pcre2`.704* [BUG #1284](https://github.com/BurntSushi/ripgrep/issues/1284):705  Mention `.ignore` and `.rgignore` more prominently in the README.706* [BUG #1292](https://github.com/BurntSushi/ripgrep/issues/1292):707  Fix bug where `--with-filename` was sometimes enabled incorrectly.708* [BUG #1268](https://github.com/BurntSushi/ripgrep/issues/1268):709  Fix major performance regression in GitHub `x86_64-linux` binary release.710* [BUG #1302](https://github.com/BurntSushi/ripgrep/issues/1302):711  Show better error messages when a non-existent preprocessor command is given.712* [BUG #1334](https://github.com/BurntSushi/ripgrep/issues/1334):713  Fix match regression with `-F` flag when patterns contain meta characters.71471571611.0.1 (2019-04-16)717===================718ripgrep 11.0.1 is a new patch release that fixes a search regression introduced719in the previous 11.0.0 release. In particular, ripgrep can enter an infinite720loop for some search patterns when searching invalid UTF-8.721722Bug fixes:723724* [BUG #1247](https://github.com/BurntSushi/ripgrep/issues/1247):725  Fix search bug that can cause ripgrep to enter an infinite loop.72672772811.0.0 (2019-04-15)729===================730ripgrep 11 is a new major version release of ripgrep that contains many bug731fixes, some performance improvements and a few feature enhancements. Notably,732ripgrep's user experience for binary file filtering has been improved. See the733[guide's new section on binary data](GUIDE.md#binary-data) for more details.734735This release also marks a change in ripgrep's versioning. Where as the previous736version was `0.10.0`, this version is `11.0.0`. Moving forward, ripgrep's737major version will be increased a few times per year. ripgrep will continue to738be conservative with respect to backwards compatibility, but may occasionally739introduce breaking changes, which will always be documented in this CHANGELOG.740See [issue 1172](https://github.com/BurntSushi/ripgrep/issues/1172) for a bit741more detail on why this versioning change was made.742743This release increases the **minimum supported Rust version** from 1.28.0 to7441.34.0.745746**BREAKING CHANGES**:747748* ripgrep has tweaked its exit status codes to be more like GNU grep's. Namely,749  if a non-fatal error occurs during a search, then ripgrep will now always750  emit a `2` exit status code, regardless of whether a match is found or not.751  Previously, ripgrep would only emit a `2` exit status code for a catastrophic752  error (e.g., regex syntax error). One exception to this is if ripgrep is run753  with `-q/--quiet`. In that case, if an error occurs and a match is found,754  then ripgrep will exit with a `0` exit status code.755* Supplying the `-u/--unrestricted` flag three times is now equivalent to756  supplying `--no-ignore --hidden --binary`. Previously, `-uuu` was equivalent757  to `--no-ignore --hidden --text`. The difference is that `--binary` disables758  binary file filtering without potentially dumping binary data into your759  terminal. That is, `rg -uuu foo` should now be equivalent to `grep -r foo`.760* The `avx-accel` feature of ripgrep has been removed since it is no longer761  necessary. All uses of AVX in ripgrep are now enabled automatically via762  runtime CPU feature detection. The `simd-accel` feature does remain available763  (only for enabling SIMD for transcoding), however, it does increase764  compilation times substantially at the moment.765766Performance improvements:767768* [PERF #497](https://github.com/BurntSushi/ripgrep/issues/497),769  [PERF #838](https://github.com/BurntSushi/ripgrep/issues/838):770  Make `rg -F -f dictionary-of-literals` much faster.771772Feature enhancements:773774* Added or improved file type filtering for Apache Thrift, ASP, Bazel, Brotli,775  BuildStream, bzip2, C, C++, Cython, gzip, Java, Make, Postscript, QML, Tex,776  XML, xz, zig and zstd.777* [FEATURE #855](https://github.com/BurntSushi/ripgrep/issues/855):778  Add `--binary` flag for disabling binary file filtering.779* [FEATURE #1078](https://github.com/BurntSushi/ripgrep/pull/1078):780  Add `--max-columns-preview` flag for showing a preview of long lines.781* [FEATURE #1099](https://github.com/BurntSushi/ripgrep/pull/1099):782  Add support for Brotli and Zstd to the `-z/--search-zip` flag.783* [FEATURE #1138](https://github.com/BurntSushi/ripgrep/pull/1138):784  Add `--no-ignore-dot` flag for ignoring `.ignore` files.785* [FEATURE #1155](https://github.com/BurntSushi/ripgrep/pull/1155):786  Add `--auto-hybrid-regex` flag for automatically falling back to PCRE2.787* [FEATURE #1159](https://github.com/BurntSushi/ripgrep/pull/1159):788  ripgrep's exit status logic should now match GNU grep. See updated man page.789* [FEATURE #1164](https://github.com/BurntSushi/ripgrep/pull/1164):790  Add `--ignore-file-case-insensitive` for case insensitive ignore globs.791* [FEATURE #1185](https://github.com/BurntSushi/ripgrep/pull/1185):792  Add `-I` flag as a short option for the `--no-filename` flag.793* [FEATURE #1207](https://github.com/BurntSushi/ripgrep/pull/1207):794  Add `none` value to `-E/--encoding` to forcefully disable all transcoding.795* [FEATURE da9d7204](https://github.com/BurntSushi/ripgrep/commit/da9d7204):796  Add `--pcre2-version` for querying showing PCRE2 version information.797798Bug fixes:799800* [BUG #306](https://github.com/BurntSushi/ripgrep/issues/306),801  [BUG #855](https://github.com/BurntSushi/ripgrep/issues/855):802  Improve the user experience for ripgrep's binary file filtering.803* [BUG #373](https://github.com/BurntSushi/ripgrep/issues/373),804  [BUG #1098](https://github.com/BurntSushi/ripgrep/issues/1098):805  `**` is now accepted as valid syntax anywhere in a glob.806* [BUG #916](https://github.com/BurntSushi/ripgrep/issues/916):807  ripgrep no longer hangs when searching `/proc` with a zombie process present.808* [BUG #1052](https://github.com/BurntSushi/ripgrep/issues/1052):809  Fix bug where ripgrep could panic when transcoding UTF-16 files.810* [BUG #1055](https://github.com/BurntSushi/ripgrep/issues/1055):811  Suggest `-U/--multiline` when a pattern contains a `\n`.812* [BUG #1063](https://github.com/BurntSushi/ripgrep/issues/1063):813  Always strip a BOM if it's present, even for UTF-8.814* [BUG #1064](https://github.com/BurntSushi/ripgrep/issues/1064):815  Fix inner literal detection that could lead to incorrect matches.816* [BUG #1079](https://github.com/BurntSushi/ripgrep/issues/1079):817  Fixes a bug where the order of globs could result in missing a match.818* [BUG #1089](https://github.com/BurntSushi/ripgrep/issues/1089):819  Fix another bug where ripgrep could panic when transcoding UTF-16 files.820* [BUG #1091](https://github.com/BurntSushi/ripgrep/issues/1091):821  Add note about inverted flags to the man page.822* [BUG #1093](https://github.com/BurntSushi/ripgrep/pull/1093):823  Fix handling of literal slashes in gitignore patterns.824* [BUG #1095](https://github.com/BurntSushi/ripgrep/issues/1095):825  Fix corner cases involving the `--crlf` flag.826* [BUG #1101](https://github.com/BurntSushi/ripgrep/issues/1101):827  Fix AsciiDoc escaping for man page output.828* [BUG #1103](https://github.com/BurntSushi/ripgrep/issues/1103):829  Clarify what `--encoding auto` does.830* [BUG #1106](https://github.com/BurntSushi/ripgrep/issues/1106):831  `--files-with-matches` and `--files-without-match` work with one file.832* [BUG #1121](https://github.com/BurntSushi/ripgrep/issues/1121):833  Fix bug that was triggering Windows antimalware when using the `--files`834  flag.835* [BUG #1125](https://github.com/BurntSushi/ripgrep/issues/1125),836  [BUG #1159](https://github.com/BurntSushi/ripgrep/issues/1159):837  ripgrep shouldn't panic for `rg -h | rg` and should emit correct exit status.838* [BUG #1144](https://github.com/BurntSushi/ripgrep/issues/1144):839  Fixes a bug where line numbers could be wrong on big-endian machines.840* [BUG #1154](https://github.com/BurntSushi/ripgrep/issues/1154):841  Windows files with "hidden" attribute are now treated as hidden.842* [BUG #1173](https://github.com/BurntSushi/ripgrep/issues/1173):843  Fix handling of `**` patterns in gitignore files.844* [BUG #1174](https://github.com/BurntSushi/ripgrep/issues/1174):845  Fix handling of repeated `**` patterns in gitignore files.846* [BUG #1176](https://github.com/BurntSushi/ripgrep/issues/1176):847  Fix bug where `-F`/`-x` weren't applied to patterns given via `-f`.848* [BUG #1189](https://github.com/BurntSushi/ripgrep/issues/1189):849  Document cases where ripgrep may use a lot of memory.850* [BUG #1203](https://github.com/BurntSushi/ripgrep/issues/1203):851  Fix a matching bug related to the suffix literal optimization.852* [BUG 8f14cb18](https://github.com/BurntSushi/ripgrep/commit/8f14cb18):853  Increase the default stack size for PCRE2's JIT.8548558560.10.0 (2018-09-07)857===================858This is a new minor version release of ripgrep that contains some major new859features, a huge number of bug fixes, and is the first release based on860libripgrep. The entirety of ripgrep's core search and printing code has been861rewritten and generalized so that anyone can make use of it.862863Major new features include PCRE2 support, multi-line search and a JSON output864format.865866**BREAKING CHANGES**:867868* The minimum version required to compile Rust has now changed to track the869  latest stable version of Rust. Patch releases will continue to compile with870  the same version of Rust as the previous patch release, but new minor871  versions will use the current stable version of the Rust compile as its872  minimum supported version.873* The match semantics of `-w/--word-regexp` have changed slightly. They used874  to be `\b(?:<your pattern>)\b`, but now it's875  `(?:^|\W)(?:<your pattern>)(?:$|\W)`. This matches the behavior of GNU grep876  and is believed to be closer to the intended semantics of the flag. See877  [#389](https://github.com/BurntSushi/ripgrep/issues/389) for more details.878879Feature enhancements:880881* [FEATURE #162](https://github.com/BurntSushi/ripgrep/issues/162):882  libripgrep is now a thing. The primary crate is883  [`grep`](https://docs.rs/grep).884* [FEATURE #176](https://github.com/BurntSushi/ripgrep/issues/176):885  Add `-U/--multiline` flag that permits matching over multiple lines.886* [FEATURE #188](https://github.com/BurntSushi/ripgrep/issues/188):887  Add `-P/--pcre2` flag that gives support for look-around and backreferences.888* [FEATURE #244](https://github.com/BurntSushi/ripgrep/issues/244):889  Add `--json` flag that prints results in a JSON Lines format.890* [FEATURE #321](https://github.com/BurntSushi/ripgrep/issues/321):891  Add `--one-file-system` flag to skip directories on different file systems.892* [FEATURE #404](https://github.com/BurntSushi/ripgrep/issues/404):893  Add `--sort` and `--sortr` flag for more sorting. Deprecate `--sort-files`.894* [FEATURE #416](https://github.com/BurntSushi/ripgrep/issues/416):895  Add `--crlf` flag to permit `$` to work with carriage returns on Windows.896* [FEATURE #917](https://github.com/BurntSushi/ripgrep/issues/917):897  The `--trim` flag strips prefix whitespace from all lines printed.898* [FEATURE #993](https://github.com/BurntSushi/ripgrep/issues/993):899  Add `--null-data` flag, which makes ripgrep use NUL as a line terminator.900* [FEATURE #997](https://github.com/BurntSushi/ripgrep/issues/997):901  The `--passthru` flag now works with the `--replace` flag.902* [FEATURE #1038-1](https://github.com/BurntSushi/ripgrep/issues/1038):903  Add `--line-buffered` and `--block-buffered` for forcing a buffer strategy.904* [FEATURE #1038-2](https://github.com/BurntSushi/ripgrep/issues/1038):905  Add `--pre-glob` for filtering files through the `--pre` flag.906907Bug fixes:908909* [BUG #2](https://github.com/BurntSushi/ripgrep/issues/2):910  Searching with non-zero context can now use memory maps if appropriate.911* [BUG #200](https://github.com/BurntSushi/ripgrep/issues/200):912  ripgrep will now stop correctly when its output pipe is closed.913* [BUG #389](https://github.com/BurntSushi/ripgrep/issues/389):914  The `-w/--word-regexp` flag now works more intuitively.915* [BUG #643](https://github.com/BurntSushi/ripgrep/issues/643):916  Detection of readable stdin has improved on Windows.917* [BUG #441](https://github.com/BurntSushi/ripgrep/issues/441),918  [BUG #690](https://github.com/BurntSushi/ripgrep/issues/690),919  [BUG #980](https://github.com/BurntSushi/ripgrep/issues/980):920  Matching empty lines now works correctly in several corner cases.921* [BUG #764](https://github.com/BurntSushi/ripgrep/issues/764):922  Color escape sequences now coalesce, which reduces output size.923* [BUG #842](https://github.com/BurntSushi/ripgrep/issues/842):924  Add man page to binary Debian package.925* [BUG #922](https://github.com/BurntSushi/ripgrep/issues/922):926  ripgrep is now more robust with respect to memory maps failing.927* [BUG #937](https://github.com/BurntSushi/ripgrep/issues/937):928  Color escape sequences are no longer emitted for empty matches.929* [BUG #940](https://github.com/BurntSushi/ripgrep/issues/940):930  Context from the `--passthru` flag should not impact process exit status.931* [BUG #984](https://github.com/BurntSushi/ripgrep/issues/984):932  Fixes bug in `ignore` crate where first path was always treated as a symlink.933* [BUG #990](https://github.com/BurntSushi/ripgrep/issues/990):934  Read stderr asynchronously when running a process.935* [BUG #1013](https://github.com/BurntSushi/ripgrep/issues/1013):936  Add compile time and runtime CPU features to `--version` output.937* [BUG #1028](https://github.com/BurntSushi/ripgrep/pull/1028):938  Don't complete bare pattern after `-f` in zsh.9399409410.9.0 (2018-08-03)942==================943This is a new minor version release of ripgrep that contains some minor new944features and a panoply of bug fixes.945946Releases provided on Github for `x86_64` will now work on all target CPUs, and947will also automatically take advantage of features found on modern CPUs (such948as AVX2) for additional optimizations.949950This release increases the **minimum supported Rust version** from 1.20.0 to9511.23.0.952953It is anticipated that the next release of ripgrep (0.10.0) will provide954multi-line search support and a JSON output format.955956**BREAKING CHANGES**:957958* When `--count` and `--only-matching` are provided simultaneously, the959  behavior of ripgrep is as if the `--count-matches` flag was given. That is,960  the total number of matches is reported, where there may be multiple matches961  per line. Previously, the behavior of ripgrep was to report the total number962  of matching lines. (Note that this behavior diverges from the behavior of963  GNU grep.)964* Octal syntax is no longer supported. ripgrep previously accepted expressions965  like `\1` as syntax for matching `U+0001`, but ripgrep will now report an966  error instead.967* The `--line-number-width` flag has been removed. Its functionality was not968  carefully considered with all ripgrep output formats.969  See [#795](https://github.com/BurntSushi/ripgrep/issues/795) for more970  details.971972Feature enhancements:973974* Added or improved file type filtering for Android, Bazel, Fuchsia, Haskell,975  Java and Puppet.976* [FEATURE #411](https://github.com/BurntSushi/ripgrep/issues/411):977  Add a `--stats` flag, which emits aggregate statistics after search results.978* [FEATURE #646](https://github.com/BurntSushi/ripgrep/issues/646):979  Add a `--no-ignore-messages` flag, which suppresses parse errors from reading980  `.ignore` and `.gitignore` files.981* [FEATURE #702](https://github.com/BurntSushi/ripgrep/issues/702):982  Support `\u{..}` Unicode escape sequences.983* [FEATURE #812](https://github.com/BurntSushi/ripgrep/issues/812):984  Add `-b/--byte-offset` flag that shows the byte offset of each matching line.985* [FEATURE #814](https://github.com/BurntSushi/ripgrep/issues/814):986  Add `--count-matches` flag, which is like `--count`, but for each match.987* [FEATURE #880](https://github.com/BurntSushi/ripgrep/issues/880):988  Add a `--no-column` flag, which disables column numbers in the output.989* [FEATURE #898](https://github.com/BurntSushi/ripgrep/issues/898):990  Add support for `lz4` when using the `-z/--search-zip` flag.991* [FEATURE #924](https://github.com/BurntSushi/ripgrep/issues/924):992  `termcolor` has moved to its own repository:993  https://github.com/BurntSushi/termcolor994* [FEATURE #934](https://github.com/BurntSushi/ripgrep/issues/934):995  Add a new flag, `--no-ignore-global`, that permits disabling global996  gitignores.997* [FEATURE #967](https://github.com/BurntSushi/ripgrep/issues/967):998  Rename `--maxdepth` to `--max-depth` for consistency. Keep `--maxdepth` for999  backwards compatibility.1000* [FEATURE #978](https://github.com/BurntSushi/ripgrep/issues/978):1001  Add a `--pre` option to filter inputs with an arbitrary program.1002* [FEATURE fca9709d](https://github.com/BurntSushi/ripgrep/commit/fca9709d):1003  Improve zsh completion.10041005Bug fixes:10061007* [BUG #135](https://github.com/BurntSushi/ripgrep/issues/135):1008  Release portable binaries that conditionally use SSSE3, AVX2, etc., at1009  runtime.1010* [BUG #268](https://github.com/BurntSushi/ripgrep/issues/268):1011  Print descriptive error message when trying to use look-around or1012  backreferences.1013* [BUG #395](https://github.com/BurntSushi/ripgrep/issues/395):1014  Show comprehensible error messages for regexes like `\s*{`.1015* [BUG #526](https://github.com/BurntSushi/ripgrep/issues/526):1016  Support backslash escapes in globs.1017* [BUG #795](https://github.com/BurntSushi/ripgrep/issues/795):1018  Fix problems with `--line-number-width` by removing it.1019* [BUG #832](https://github.com/BurntSushi/ripgrep/issues/832):1020  Clarify usage instructions for `-f/--file` flag.1021* [BUG #835](https://github.com/BurntSushi/ripgrep/issues/835):1022  Fix small performance regression while crawling very large directory trees.1023* [BUG #851](https://github.com/BurntSushi/ripgrep/issues/851):1024  Fix `-S/--smart-case` detection once and for all.1025* [BUG #852](https://github.com/BurntSushi/ripgrep/issues/852):1026  Be robust with respect to `ENOMEM` errors returned by `mmap`.1027* [BUG #853](https://github.com/BurntSushi/ripgrep/issues/853):1028  Upgrade `grep` crate to `regex-syntax 0.6.0`.1029* [BUG #893](https://github.com/BurntSushi/ripgrep/issues/893):1030  Improve support for git submodules.1031* [BUG #900](https://github.com/BurntSushi/ripgrep/issues/900):1032  When no patterns are given, ripgrep should never match anything.1033* [BUG #907](https://github.com/BurntSushi/ripgrep/issues/907):1034  ripgrep will now stop traversing after the first file when `--quiet --files`1035  is used.1036* [BUG #918](https://github.com/BurntSushi/ripgrep/issues/918):1037  Don't skip tar archives when `-z/--search-zip` is used.1038* [BUG #934](https://github.com/BurntSushi/ripgrep/issues/934):1039  Don't respect gitignore files when searching outside git repositories.1040* [BUG #948](https://github.com/BurntSushi/ripgrep/issues/948):1041  Use exit code 2 to indicate error, and use exit code 1 to indicate no1042  matches.1043* [BUG #951](https://github.com/BurntSushi/ripgrep/issues/951):1044  Add stdin example to ripgrep usage documentation.1045* [BUG #955](https://github.com/BurntSushi/ripgrep/issues/955):1046  Use buffered writing when not printing to a tty, which fixes a performance1047  regression.1048* [BUG #957](https://github.com/BurntSushi/ripgrep/issues/957):1049  Improve the error message shown for `--path separator /` in some Windows1050  shells.1051* [BUG #964](https://github.com/BurntSushi/ripgrep/issues/964):1052  Add a `--no-fixed-strings` flag to disable `-F/--fixed-strings`.1053* [BUG #988](https://github.com/BurntSushi/ripgrep/issues/988):1054  Fix a bug in the `ignore` crate that prevented the use of explicit ignore1055  files after disabling all other ignore rules.1056* [BUG #995](https://github.com/BurntSushi/ripgrep/issues/995):1057  Respect `$XDG_CONFIG_DIR/git/config` for detecting `core.excludesFile`.1058105910600.8.1 (2018-02-20)1061==================1062This is a patch release of ripgrep that primarily fixes regressions introduced1063in 0.8.0 (#820 and #824) in directory traversal on Windows. These regressions1064do not impact non-Windows users.10651066Feature enhancements:10671068* Added or improved file type filtering for csv and VHDL.1069* [FEATURE #798](https://github.com/BurntSushi/ripgrep/issues/798):1070  Add `underline` support to `termcolor` and ripgrep. See documentation on the1071  `--colors` flag for details.10721073Bug fixes:10741075* [BUG #684](https://github.com/BurntSushi/ripgrep/issues/684):1076  Improve documentation for the `--ignore-file` flag.1077* [BUG #789](https://github.com/BurntSushi/ripgrep/issues/789):1078  Don't show `(rev )` if the revision wasn't available during the build.1079* [BUG #791](https://github.com/BurntSushi/ripgrep/issues/791):1080  Add man page to ARM release.1081* [BUG #797](https://github.com/BurntSushi/ripgrep/issues/797):1082  Improve documentation for "intense" setting in `termcolor`.1083* [BUG #800](https://github.com/BurntSushi/ripgrep/issues/800):1084  Fix a bug in the `ignore` crate for custom ignore files. This had no impact1085  on ripgrep.1086* [BUG #807](https://github.com/BurntSushi/ripgrep/issues/807):1087  Fix a bug where `rg --hidden .` behaved differently from `rg --hidden ./`.1088* [BUG #815](https://github.com/BurntSushi/ripgrep/issues/815):1089  Clarify a common failure mode in user guide.1090* [BUG #820](https://github.com/BurntSushi/ripgrep/issues/820):1091  Fixes a bug on Windows where symlinks were followed even if not requested.1092* [BUG #824](https://github.com/BurntSushi/ripgrep/issues/824):1093  Fix a performance regression in directory traversal on Windows.1094109510960.8.0 (2018-02-11)1097==================1098This is a new minor version release of ripgrep that satisfies several popular1099feature requests (config files, search compressed files, true colors), fixes1100many bugs and improves the quality of life for ripgrep maintainers. This1101release also includes greatly improved documentation in the form of a1102[User Guide](GUIDE.md) and a [FAQ](FAQ.md).11031104This release increases the **minimum supported Rust version** from 1.17 to11051.20.11061107**BREAKING CHANGES**:11081109Note that these are all very minor and unlikely to impact most users.11101111* In order to support configuration files, flag overrides needed to be1112  rethought. In some cases, this changed ripgrep's behavior. For example,1113  in ripgrep 0.7.1, `rg foo -s -i` will perform a case sensitive search1114  since the `-s/--case-sensitive` flag was defined to always take precedence1115  over the `-i/--ignore-case` flag, regardless of position. In ripgrep 0.8.01116  however, the override rule for all flags has changed to "the most recent1117  flag wins among competing flags." That is, `rg foo -s -i` now performs a1118  case insensitive search.1119* The `-M/--max-columns` flag was tweaked so that specifying a value of `0`1120  now makes ripgrep behave as if the flag was absent. This makes it possible1121  to set a default value in a configuration file and then override it. The1122  previous ripgrep behavior was to suppress all matching non-empty lines.1123* In all globs, `[^...]` is now equivalent to `[!...]` (indicating class1124  negation). Previously, `^` had no special significance in a character class.1125* For **downstream packagers**, the directory hierarchy in ripgrep's archive1126  releases has changed. The root directory now only contains the executable,1127  README and license. There is now a new directory called `doc` which contains1128  the man page (previously in the root), a user guide (new), a FAQ (new) and1129  the CHANGELOG (previously not included in release). The `complete`1130  directory remains the same.11311132Feature enhancements:11331134* Added or improved file type filtering for1135  Apache Avro, C++, GN, Google Closure Templates, Jupyter notebooks, man pages,1136  Protocol Buffers, Smarty and Web IDL.1137* [FEATURE #196](https://github.com/BurntSushi/ripgrep/issues/196):1138  Support a configuration file. See1139  [the new user guide](GUIDE.md#configuration-file)1140  for details.1141* [FEATURE #261](https://github.com/BurntSushi/ripgrep/issues/261):1142  Add extended or "true" color support. Works in Windows 10!1143  [See the FAQ for details.](FAQ.md#colors)1144* [FEATURE #539](https://github.com/BurntSushi/ripgrep/issues/539):1145  Search gzip, bzip2, lzma or xz files when given `-z/--search-zip` flag.1146* [FEATURE #544](https://github.com/BurntSushi/ripgrep/issues/544):1147  Add support for line number alignment via a new `--line-number-width` flag.1148* [FEATURE #654](https://github.com/BurntSushi/ripgrep/pull/654):1149  Support linuxbrew in ripgrep's Brew tap.1150* [FEATURE #673](https://github.com/BurntSushi/ripgrep/issues/673):1151  Bring back `.rgignore` files. (A higher precedent, application specific1152  version of `.ignore`.)1153* [FEATURE #676](https://github.com/BurntSushi/ripgrep/issues/676):1154  Provide ARM binaries. **WARNING:** This will be provided on a best effort1155  basis.1156* [FEATURE #709](https://github.com/BurntSushi/ripgrep/issues/709):1157  Suggest `-F/--fixed-strings` flag on a regex syntax error.1158* [FEATURE #740](https://github.com/BurntSushi/ripgrep/issues/740):1159  Add a `--passthru` flag that causes ripgrep to print every line it reads.1160* [FEATURE #785](https://github.com/BurntSushi/ripgrep/pull/785):1161  Overhaul documentation. Cleaned up README, added user guide and FAQ.1162* [FEATURE 7f5c07](https://github.com/BurntSushi/ripgrep/commit/7f5c07434be92103b5bf7e216b9c7494aed2d8cb):1163  Add hidden flags for convenient overrides (e.g., `--no-text`).11641165Bug fixes:11661167* [BUG #553](https://github.com/BurntSushi/ripgrep/issues/553):1168  Permit flags to be repeated.1169* [BUG #633](https://github.com/BurntSushi/ripgrep/issues/633):1170  Fix a bug where ripgrep would panic on Windows while following symlinks.1171* [BUG #649](https://github.com/BurntSushi/ripgrep/issues/649):1172  Fix handling of `!**/` in `.gitignore`.1173* [BUG #663](https://github.com/BurntSushi/ripgrep/issues/663):1174  **BREAKING CHANGE:** Support `[^...]` glob syntax (as identical to `[!...]`).1175* [BUG #693](https://github.com/BurntSushi/ripgrep/issues/693):1176  Don't display context separators when not printing matches.1177* [BUG #705](https://github.com/BurntSushi/ripgrep/issues/705):1178  Fix a bug that prevented ripgrep from searching OneDrive directories.1179* [BUG #717](https://github.com/BurntSushi/ripgrep/issues/717):1180  Improve `--smart-case` uppercase character detection.1181* [BUG #725](https://github.com/BurntSushi/ripgrep/issues/725):1182  Clarify that globs do not override explicitly given paths to search.1183* [BUG #742](https://github.com/BurntSushi/ripgrep/pull/742):1184  Write ANSI reset code as `\x1B[0m` instead of `\x1B[m`.1185* [BUG #747](https://github.com/BurntSushi/ripgrep/issues/747):1186  Remove `yarn.lock` from YAML file type.1187* [BUG #760](https://github.com/BurntSushi/ripgrep/issues/760):1188  ripgrep can now search `/sys/devices/system/cpu/vulnerabilities/*` files.1189* [BUG #761](https://github.com/BurntSushi/ripgrep/issues/761):1190  Fix handling of gitignore patterns that contain a `/`.1191* [BUG #776](https://github.com/BurntSushi/ripgrep/pull/776):1192  **BREAKING CHANGE:** `--max-columns=0` now disables the limit.1193* [BUG #779](https://github.com/BurntSushi/ripgrep/issues/779):1194  Clarify documentation for `--files-without-match`.1195* [BUG #780](https://github.com/BurntSushi/ripgrep/issues/780),1196  [BUG #781](https://github.com/BurntSushi/ripgrep/issues/781):1197  Fix bug where ripgrep missed some matching lines.11981199Maintenance fixes:12001201* [MAINT #772](https://github.com/BurntSushi/ripgrep/pull/772):1202  Drop `env_logger` in favor of simpler logger to avoid many new dependencies.1203* [MAINT #772](https://github.com/BurntSushi/ripgrep/pull/772):1204  Add git revision hash to ripgrep's version string.1205* [MAINT #772](https://github.com/BurntSushi/ripgrep/pull/772):1206  (Seemingly) improve compile times.1207* [MAINT #776](https://github.com/BurntSushi/ripgrep/pull/776):1208  Automatically generate man page during build.1209* [MAINT #786](https://github.com/BurntSushi/ripgrep/pull/786):1210  Remove use of `unsafe` in `globset`. :tada:1211* [MAINT e9d448](https://github.com/BurntSushi/ripgrep/commit/e9d448e93bb4e1fb3b0c1afc29adb5af6ed5283d):1212  Add an issue template (has already drastically improved bug reports).1213* [MAINT ae2d03](https://github.com/BurntSushi/ripgrep/commit/ae2d036dd4ba2a46acac9c2d77c32e7c667eb850):1214  Remove the `compile` script.12151216Friends of ripgrep:12171218I'd like to extend my gratitude to1219[@balajisivaraman](https://github.com/balajisivaraman)1220for their recent hard work in a number of areas, and in particular, for1221implementing the "search compressed files" feature. Their work in sketching out1222a specification for that and other work has been exemplary.12231224Thanks1225[@balajisivaraman](https://github.com/balajisivaraman)!1226122712280.7.1 (2017-10-22)1229==================1230This is a patch release of ripgrep that includes a fix to very bad regression1231introduced in ripgrep 0.7.0.12321233Bug fixes:12341235* [BUG #648](https://github.com/BurntSushi/ripgrep/issues/648):1236  Fix a bug where it was very easy to exceed standard file descriptor limits.1237123812390.7.0 (2017-10-20)1240==================1241This is a new minor version release of ripgrep that includes mostly bug fixes.12421243ripgrep continues to require Rust 1.17, and there are no known breaking changes1244introduced in this release.12451246Feature enhancements:12471248* Added or improved file type filtering for config & license files, Elm,1249  Purescript, Standard ML, sh, systemd, Terraform1250* [FEATURE #593](https://github.com/BurntSushi/ripgrep/pull/593):1251  Using both `-o/--only-matching` and `-r/--replace` does the right thing.12521253Bug fixes:12541255* [BUG #200](https://github.com/BurntSushi/ripgrep/issues/200):1256  ripgrep will stop when its pipe is closed.1257* [BUG #402](https://github.com/BurntSushi/ripgrep/issues/402):1258  Fix context printing bug when the `-m/--max-count` flag is used.1259* [BUG #521](https://github.com/BurntSushi/ripgrep/issues/521):1260  Fix interaction between `-r/--replace` and terminal colors.1261* [BUG #559](https://github.com/BurntSushi/ripgrep/issues/559):1262  Ignore test that tried reading a non-UTF-8 file path on macOS.1263* [BUG #599](https://github.com/BurntSushi/ripgrep/issues/599):1264  Fix color escapes on empty matches.1265* [BUG #600](https://github.com/BurntSushi/ripgrep/issues/600):1266  Avoid expensive (on Windows) file handle check when using --files.1267* [BUG #618](https://github.com/BurntSushi/ripgrep/issues/618):1268  Clarify installation instructions for Ubuntu users.1269* [BUG #633](https://github.com/BurntSushi/ripgrep/issues/633):1270  Faster symlink loop checking on Windows.1271127212730.6.0 (2017-08-23)1274==================1275This is a new minor version release of ripgrep that includes many bug fixes1276and a few new features such as `--iglob` and `-x/--line-regexp`.12771278Note that this release increases the minimum supported Rust version from 1.121279to 1.17.12801281Feature enhancements:12821283* Added or improved file type filtering for BitBake, C++, Cabal, cshtml, Julia,1284  Make, msbuild, QMake, Yocto1285* [FEATURE #163](https://github.com/BurntSushi/ripgrep/issues/163):1286  Add an `--iglob` flag that is like `-g/--glob`, but matches globs1287  case insensitively.1288* [FEATURE #520](https://github.com/BurntSushi/ripgrep/pull/518):1289  Add `-x/--line-regexp` flag, which requires a match to span an entire line.1290* [FEATURE #551](https://github.com/BurntSushi/ripgrep/pull/551),1291  [FEATURE #554](https://github.com/BurntSushi/ripgrep/pull/554):1292  `ignore`: add new `matched_path_or_any_parents` method.12931294Bug fixes:12951296* [BUG #342](https://github.com/BurntSushi/ripgrep/issues/342):1297  Fix invisible text in some PowerShell environments by changing the1298  default color scheme on Windows.1299* [BUG #413](https://github.com/BurntSushi/ripgrep/issues/413):1300  Release binaries on Unix are now `strip`'d by default. This decreases1301  binary size by an order of magnitude.1302* [BUG #483](https://github.com/BurntSushi/ripgrep/issues/483):1303  When `--quiet` is passed, `--files` should be quiet.1304* [BUG #488](https://github.com/BurntSushi/ripgrep/pull/488):1305  When `--vimgrep` is passed, `--with-filename` should be enabled1306  automatically.1307* [BUG #493](https://github.com/BurntSushi/ripgrep/issues/493):1308  Fix another bug in the implementation of the `-o/--only-matching`1309  flag.1310* [BUG #499](https://github.com/BurntSushi/ripgrep/pull/499):1311  Permit certain flags to override others.1312* [BUG #523](https://github.com/BurntSushi/ripgrep/pull/523):1313  `wincolor`: Re-fetch Windows console on all calls.1314* [BUG #523](https://github.com/BurntSushi/ripgrep/issues/524):1315  `--version` now shows enabled compile-time features.1316* [BUG #532](https://github.com/BurntSushi/ripgrep/issues/532),1317  [BUG #536](https://github.com/BurntSushi/ripgrep/pull/536),1318  [BUG #538](https://github.com/BurntSushi/ripgrep/pull/538),1319  [BUG #540](https://github.com/BurntSushi/ripgrep/pull/540),1320  [BUG #560](https://github.com/BurntSushi/ripgrep/pull/560),1321  [BUG #565](https://github.com/BurntSushi/ripgrep/pull/565):1322  Improve zsh completion.1323* [BUG #578](https://github.com/BurntSushi/ripgrep/pull/578):1324  Enable SIMD for `encoding_rs` when appropriate.1325* [BUG #580](https://github.com/BurntSushi/ripgrep/issues/580):1326  Fix `-w/--word-regexp` in the presence of capturing groups.1327* [BUG #581](https://github.com/BurntSushi/ripgrep/issues/581):1328  Document that ripgrep may terminate unexpectedly when searching via1329  memory maps (which can happen using default settings).13301331Friends of ripgrep:13321333I'd like to give a big Thank You to @okdana for their recent hard work on1334ripgrep. This includes new features like `--line-regexp`, heroic effort on1335zsh auto-completion and thinking through some thorny argv issues with me.13361337I'd also like to thank @ericbn for their work on improving ripgrep's argv1338parsing by allowing some flags to override others.13391340Thanks @okdana and @ericbn!1341134213430.5.2 (2017-05-11)1344==================1345Feature enhancements:13461347* Added or improved file type filtering for Nix.1348* [FEATURE #362](https://github.com/BurntSushi/ripgrep/issues/362):1349  Add `--regex-size-limit` and `--dfa-size-limit` flags.1350* [FEATURE #444](https://github.com/BurntSushi/ripgrep/issues/444):1351  Improve error messages for invalid globs.13521353Bug fixes:13541355* [BUG #442](https://github.com/BurntSushi/ripgrep/issues/442):1356  Fix line wrapping in `--help` output.1357* [BUG #451](https://github.com/BurntSushi/ripgrep/issues/451):1358  Fix bug with duplicate output when using `-o/--only-matching` flag.1359136013610.5.1 (2017-04-09)1362==================1363Feature enhancements:13641365* Added or improved file type filtering for vim.1366* [FEATURE #34](https://github.com/BurntSushi/ripgrep/issues/34):1367  Add a `-o/--only-matching` flag.1368* [FEATURE #377](https://github.com/BurntSushi/ripgrep/issues/377):1369  Column numbers can now be customized with a color. (The default is1370  no color.)1371* [FEATURE #419](https://github.com/BurntSushi/ripgrep/issues/419):1372  Added `-0` short flag option for `--null`.13731374Bug fixes:13751376* [BUG #381](https://github.com/BurntSushi/ripgrep/issues/381):1377  Include license text in all subcrates.1378* [BUG #418](https://github.com/BurntSushi/ripgrep/issues/418),1379  [BUG #426](https://github.com/BurntSushi/ripgrep/issues/426),1380  [BUG #439](https://github.com/BurntSushi/ripgrep/issues/439):1381  Fix a few bugs with `-h/--help` output.1382138313840.5.0 (2017-03-12)1385==================1386This is a new minor version release of ripgrep that includes one minor breaking1387change, bug fixes and several new features including support for text encodings1388other than UTF-8.13891390A notable accomplishment with respect to Rust is that ripgrep proper now only1391contains a single `unsafe` use (for accessing the contents of a memory map).13921393The **breaking change** is:13941395* [FEATURE #380](https://github.com/BurntSushi/ripgrep/issues/380):1396  Line numbers are now hidden by default when ripgrep is printing to a tty1397  **and** the only thing searched is stdin.13981399Feature enhancements:14001401* Added or improved file type filtering for Ceylon, CSS, Elixir, HTML, log,1402  SASS, SVG, Twig1403* [FEATURE #1](https://github.com/BurntSushi/ripgrep/issues/1):1404  Add support for additional text encodings, including automatic detection for1405  UTF-16 via BOM sniffing. Explicit text encoding support with the1406  `-E/--encoding` flag was also added for latin-1, GBK, EUC-JP1407  and Shift_JIS, among others. The full list can be found here:1408  https://encoding.spec.whatwg.org/#concept-encoding-get1409* [FEATURE #129](https://github.com/BurntSushi/ripgrep/issues/129):1410  Add a new `-M/--max-columns` flag that omits lines longer than the given1411  number of bytes. (Disabled by default!)1412* [FEATURE #369](https://github.com/BurntSushi/ripgrep/issues/369):1413  A new flag, `--max-filesize`, was added for limiting searches to files with1414  a maximum file size.14151416Bug fixes:14171418* [BUG #52](https://github.com/BurntSushi/ripgrep/issues/52),1419  [BUG #311](https://github.com/BurntSushi/ripgrep/issues/311):1420  Tweak how binary files are detected and handled. (We are slightly less1421  conservative and will no longer use memory without bound.)1422* [BUG #326](https://github.com/BurntSushi/ripgrep/issues/326):1423  When --files flag is given, we should never attempt to parse positional1424  arguments as regexes.1425* [BUG #327](https://github.com/BurntSushi/ripgrep/issues/327):1426  Permit the --heading flag to override the --no-heading flag.1427* [BUG #340](https://github.com/BurntSushi/ripgrep/pull/340):1428  Clarify that the `-u/--unrestricted` flags are aliases.1429* [BUG #343](https://github.com/BurntSushi/ripgrep/pull/343):1430  Global git ignore config should use `$HOME/.config/git/ignore` and not1431  `$HOME/git/ignore`.1432* [BUG #345](https://github.com/BurntSushi/ripgrep/pull/345):1433  Clarify docs for `-g/--glob` flag.1434* [BUG #381](https://github.com/BurntSushi/ripgrep/issues/381):1435  Add license files to each sub-crate.1436* [BUG #383](https://github.com/BurntSushi/ripgrep/issues/383):1437  Use latest version of clap (for argv parsing).1438* [BUG #392](https://github.com/BurntSushi/ripgrep/issues/391):1439  Fix translation of set globs (e.g., `{foo,bar,quux}`) to regexes.1440* [BUG #401](https://github.com/BurntSushi/ripgrep/pull/401):1441  Add PowerShell completion file to Windows release.1442* [BUG #405](https://github.com/BurntSushi/ripgrep/issues/405):1443  Fix bug when excluding absolute paths with the `-g/--glob` flag.1444144514460.4.01447=====1448This is a new minor version release of ripgrep that includes a couple very1449minor breaking changes, a few new features and lots of bug fixes.14501451This version of ripgrep upgrades its `regex` dependency from `0.1` to `0.2`,1452which includes a few minor syntax changes:14531454* POSIX character classes now require double bracketing. Previously, the regex1455  `[:upper:]` would parse as the `upper` POSIX character class. Now it parses1456  as the character class containing the characters `:upper:`. The fix to this1457  change is to use `[[:upper:]]` instead. Note that variants like1458  `[[:upper:][:blank:]]` continue to work.1459* The character `[` must always be escaped inside a character class.1460* The characters `&`, `-` and `~` must be escaped if any one of them are1461  repeated consecutively. For example, `[&]`, `[\&]`, `[\&\&]`, `[&-&]` are all1462  equivalent while `[&&]` is illegal. (The motivation for this and the prior1463  change is to provide a backwards compatible path for adding character class1464  set notation.)14651466Feature enhancements:14671468* Added or improved file type filtering for Crystal, Kotlin, Perl, PowerShell,1469  Ruby, Swig1470* [FEATURE #83](https://github.com/BurntSushi/ripgrep/issues/83):1471  Type definitions can now include other type definitions.1472* [FEATURE #243](https://github.com/BurntSushi/ripgrep/issues/243):1473  **BREAKING CHANGE**: The `--column` flag now implies `--line-number`.1474* [FEATURE #263](https://github.com/BurntSushi/ripgrep/issues/263):1475  Add a new `--sort-files` flag.1476* [FEATURE #275](https://github.com/BurntSushi/ripgrep/issues/275):1477  Add a new `--path-separator` flag. Useful in cygwin.14781479Bug fixes:14801481* [BUG #182](https://github.com/BurntSushi/ripgrep/issues/182):1482  Redux: use more portable ANSI color escape sequences when possible.1483* [BUG #258](https://github.com/BurntSushi/ripgrep/issues/258):1484  Fix bug that caused ripgrep's parallel iterator to spin and burn CPU.1485* [BUG #262](https://github.com/BurntSushi/ripgrep/issues/262):1486  Document how to install shell completion files.1487* [BUG #266](https://github.com/BurntSushi/ripgrep/issues/266),1488  [BUG #293](https://github.com/BurntSushi/ripgrep/issues/293):1489  Fix handling of bold styling and change the default colors.1490* [BUG #268](https://github.com/BurntSushi/ripgrep/issues/268):1491  Make lack of backreference support more explicit.1492* [BUG #271](https://github.com/BurntSushi/ripgrep/issues/271):1493  Remove `~` dependency on clap.1494* [BUG #277](https://github.com/BurntSushi/ripgrep/issues/277):1495  Fix cosmetic issue in `globset` crate docs.1496* [BUG #279](https://github.com/BurntSushi/ripgrep/issues/279):1497  ripgrep did not terminate when `-q/--quiet` was given.1498* [BUG #281](https://github.com/BurntSushi/ripgrep/issues/281):1499  **BREAKING CHANGE**: Completely remove `^C` handling from ripgrep.1500* [BUG #284](https://github.com/BurntSushi/ripgrep/issues/284):1501  Make docs for `-g/--glob` clearer.1502* [BUG #286](https://github.com/BurntSushi/ripgrep/pull/286):1503  When stdout is redirected to a file, don't search that file.1504* [BUG #287](https://github.com/BurntSushi/ripgrep/pull/287):1505  Fix ZSH completions.1506* [BUG #295](https://github.com/BurntSushi/ripgrep/pull/295):1507  Remove superfluous `memmap` dependency in `grep` crate.1508* [BUG #308](https://github.com/BurntSushi/ripgrep/pull/308):1509  Improve docs for `-r/--replace`.1510* [BUG #313](https://github.com/BurntSushi/ripgrep/pull/313):1511  Update bytecount dep to latest version.1512* [BUG #318](https://github.com/BurntSushi/ripgrep/pull/318):1513  Fix invalid UTF-8 output bug in Windows consoles.1514151515160.3.21517=====1518Feature enhancements:15191520* Added or improved file type filtering for Less, Sass, stylus, Zsh15211522Bug fixes:15231524* [BUG #229](https://github.com/BurntSushi/ripgrep/issues/229):1525  Make smart case slightly less conservative.1526* [BUG #247](https://github.com/BurntSushi/ripgrep/issues/247):1527  Clarify use of --heading/--no-heading.1528* [BUG #251](https://github.com/BurntSushi/ripgrep/issues/251),1529  [BUG #264](https://github.com/BurntSushi/ripgrep/issues/264),1530  [BUG #267](https://github.com/BurntSushi/ripgrep/issues/267):1531  Fix matching bug caused by literal optimizations.1532* [BUG #256](https://github.com/BurntSushi/ripgrep/issues/256):1533  Fix bug that caused `rg foo` and `rg foo/` to have different behavior1534  when `foo` was a symlink.1535* [BUG #270](https://github.com/BurntSushi/ripgrep/issues/270):1536  Fix bug where patterns starting with a `-` couldn't be used with the1537  `-e/--regexp` flag. (This resolves a regression that was introduced in1538  ripgrep 0.3.0.)1539154015410.3.11542=====1543Bug fixes:15441545* [BUG #242](https://github.com/BurntSushi/ripgrep/issues/242):1546  ripgrep didn't respect `--colors foo:none` correctly. Now it does.1547154815490.3.01550=====1551This is a new minor version release of ripgrep that includes two breaking1552changes with lots of bug fixes and some new features and performance1553improvements. Notably, if you had a problem with colors or piping on Windows1554before, then that should now be fixed in this release.15551556**BREAKING CHANGES**:15571558* ripgrep now requires Rust 1.11 to compile. Previously, it could build on1559  Rust 1.9. The cause of this was the move from1560  [Docopt to Clap](https://github.com/BurntSushi/ripgrep/pull/233)1561  for argument parsing.1562* The `-e/--regexp` flag can no longer accept a pattern starting with a `-`.1563  There are two work-arounds: `rg -- -foo` and `rg [-]foo` or `rg -e [-]foo`1564  will all search for the same `-foo` pattern. The cause of this was the move1565  from [Docopt to Clap](https://github.com/BurntSushi/ripgrep/pull/233)1566  for argument parsing.1567  [This may get fixed in the1568  future.](https://github.com/kbknapp/clap-rs/issues/742).15691570Performance improvements:15711572* [PERF #33](https://github.com/BurntSushi/ripgrep/issues/33):1573  ripgrep now performs similar to GNU grep on small corpora.1574* [PERF #136](https://github.com/BurntSushi/ripgrep/issues/136):1575  ripgrep no longer slows down because of argument parsing when given a large1576  argument list.15771578Feature enhancements:15791580* Added or improved file type filtering for Elixir.1581* [FEATURE #7](https://github.com/BurntSushi/ripgrep/issues/7):1582  Add a `-f/--file` flag that causes ripgrep to read patterns from a file.1583* [FEATURE #51](https://github.com/BurntSushi/ripgrep/issues/51):1584  Add a `--colors` flag that enables one to customize the colors used in1585  ripgrep's output.1586* [FEATURE #138](https://github.com/BurntSushi/ripgrep/issues/138):1587  Add a `--files-without-match` flag that shows only file paths that contain1588  zero matches.1589* [FEATURE #230](https://github.com/BurntSushi/ripgrep/issues/230):1590  Add completion files to the release (Bash, Fish and PowerShell).15911592Bug fixes:15931594* [BUG #37](https://github.com/BurntSushi/ripgrep/issues/37):1595  Use correct ANSI escape sequences when `TERM=screen.linux`.1596* [BUG #94](https://github.com/BurntSushi/ripgrep/issues/94):1597  ripgrep now detects stdin on Windows automatically.1598* [BUG #117](https://github.com/BurntSushi/ripgrep/issues/117):1599  Colors should now work correctly and automatically inside mintty.1600* [BUG #182](https://github.com/BurntSushi/ripgrep/issues/182):1601  Colors should now work within Emacs. In particular, `--color=always` will1602  emit colors regardless of the current environment.1603* [BUG #189](https://github.com/BurntSushi/ripgrep/issues/189):1604  Show less content when running `rg -h`. The full help content can be1605  accessed with `rg --help`.1606* [BUG #210](https://github.com/BurntSushi/ripgrep/issues/210):1607  Support non-UTF-8 file names on Unix platforms.1608* [BUG #231](https://github.com/BurntSushi/ripgrep/issues/231):1609  Switch from block buffering to line buffering.1610* [BUG #241](https://github.com/BurntSushi/ripgrep/issues/241):1611  Some error messages weren't suppressed when `--no-messages` was used.1612161316140.2.91615=====1616Bug fixes:16171618* [BUG #226](https://github.com/BurntSushi/ripgrep/issues/226):1619  File paths explicitly given on the command line weren't searched in parallel.1620  (This was a regression in `0.2.7`.)1621* [BUG #228](https://github.com/BurntSushi/ripgrep/issues/228):1622  If a directory was given to `--ignore-file`, ripgrep's memory usage would1623  grow without bound.1624162516260.2.81627=====1628Bug fixes:16291630* Fixed a bug with the SIMD/AVX features for using bytecount in commit1631  `4ca15a`.1632163316340.2.71635=====1636Performance improvements:16371638* [PERF #223](https://github.com/BurntSushi/ripgrep/pull/223):1639  Added a parallel recursive directory iterator. This results in major1640  performance improvements on large repositories.1641* [PERF #11](https://github.com/BurntSushi/ripgrep/pull/11):1642  ripgrep now uses the `bytecount` library for counting new lines. In some1643  cases, ripgrep runs twice as fast. Use1644  `RUSTFLAGS="-C target-cpu=native" cargo build --release --features 'simd-accel avx-accel'`1645  to get the fastest possible binary.16461647Feature enhancements:16481649* Added or improved file type filtering for Agda, Tex, Taskpaper, Markdown,1650  asciidoc, textile, rdoc, org, creole, wiki, pod, C#, PDF, C, C++.1651* [FEATURE #149](https://github.com/BurntSushi/ripgrep/issues/149):1652  Add a new `--no-messages` flag that suppresses error messages.1653  Note that `rg foo 2> /dev/null` also works.1654* [FEATURE #159](https://github.com/BurntSushi/ripgrep/issues/159):1655  Add a new `-m/--max-count` flag that limits the total number of matches1656  printed for each file searched.16571658Bug fixes:16591660* [BUG #199](https://github.com/BurntSushi/ripgrep/issues/199):1661  Fixed a bug where `-S/--smart-case` wasn't being applied correctly to1662  literal optimizations.1663* [BUG #203](https://github.com/BurntSushi/ripgrep/issues/203):1664  Mention the full name, ripgrep, in more places. It now appears in1665  the output of `--help` and `--version`. The repository URL is now also1666  in the output of `--help` and the man page.1667* [BUG #215](https://github.com/BurntSushi/ripgrep/issues/215):1668  Include small note about how to search for a pattern that starts with a `-`.1669167016710.2.61672=====1673Feature enhancements:16741675* Added or improved file type filtering for Fish.16761677Bug fixes:16781679* [BUG #206](https://github.com/BurntSushi/ripgrep/issues/206):1680  Fixed a regression with `-g/--glob` flag in `0.2.5`.1681168216830.2.51684=====1685Feature enhancements:16861687* Added or improved file type filtering for Groovy, Handlebars, Tcl, zsh and1688  Python.1689* [FEATURE #9](https://github.com/BurntSushi/ripgrep/issues/9):1690  Support global gitignore config and `.git/info/exclude` files.1691* [FEATURE #45](https://github.com/BurntSushi/ripgrep/issues/45):1692  Add --ignore-file flag for specifying additional ignore files.1693* [FEATURE #202](https://github.com/BurntSushi/ripgrep/pull/202):1694  Introduce a new1695  [`ignore`](https://github.com/BurntSushi/ripgrep/tree/master/ignore)1696  crate that encapsulates all of ripgrep's gitignore matching logic.16971698Bug fixes:16991700* [BUG #44](https://github.com/BurntSushi/ripgrep/issues/44):1701  ripgrep runs slowly when given lots of positional arguments that are1702  directories.1703* [BUG #119](https://github.com/BurntSushi/ripgrep/issues/119):1704  ripgrep didn't reset terminal colors if it was interrupted by `^C`.1705  Fixed in [PR #187](https://github.com/BurntSushi/ripgrep/pull/187).1706* [BUG #184](https://github.com/BurntSushi/ripgrep/issues/184):1707  Fixed a bug related to interpreting gitignore files in parent directories.1708170917100.2.41711=====1712SKIPPED.1713171417150.2.31716=====1717Bug fixes:17181719* [BUG #164](https://github.com/BurntSushi/ripgrep/issues/164):1720  Fixes a segfault on macos builds.1721* [BUG #167](https://github.com/BurntSushi/ripgrep/issues/167):1722  Clarify documentation for --threads.1723172417250.2.21726=====1727Packaging updates:17281729* `ripgrep` is now in homebrew-core. `brew install ripgrep` will do the trick1730  on a Mac.1731* `ripgrep` is now in the Archlinux community repository.1732  `pacman -S ripgrep` will do the trick on Archlinux.1733* Support has been discontinued for i686-darwin.1734* Glob matching has been moved out into its own crate:1735  [`globset`](https://crates.io/crates/globset).17361737Feature enhancements:17381739* Added or improved file type filtering for CMake, config, Jinja, Markdown,1740  Spark.1741* [FEATURE #109](https://github.com/BurntSushi/ripgrep/issues/109):1742  Add a --max-depth flag for directory traversal.1743* [FEATURE #124](https://github.com/BurntSushi/ripgrep/issues/124):1744  Add -s/--case-sensitive flag. Overrides --smart-case.1745* [FEATURE #139](https://github.com/BurntSushi/ripgrep/pull/139):1746  The `ripgrep` repo is now a Homebrew tap. This is useful for installing1747  SIMD accelerated binaries, which aren't available in homebrew-core.17481749Bug fixes:17501751* [BUG #87](https://github.com/BurntSushi/ripgrep/issues/87),1752  [BUG #127](https://github.com/BurntSushi/ripgrep/issues/127),1753  [BUG #131](https://github.com/BurntSushi/ripgrep/issues/131):1754  Various issues related to glob matching.1755* [BUG #116](https://github.com/BurntSushi/ripgrep/issues/116):1756  --quiet should stop search after first match.1757* [BUG #121](https://github.com/BurntSushi/ripgrep/pull/121):1758  --color always should show colors, even when --vimgrep is used.1759* [BUG #122](https://github.com/BurntSushi/ripgrep/pull/122):1760  Colorize file path at beginning of line.1761* [BUG #134](https://github.com/BurntSushi/ripgrep/issues/134):1762  Processing a large ignore file (thousands of globs) was very slow.1763* [BUG #137](https://github.com/BurntSushi/ripgrep/issues/137):1764  Always follow symlinks when given as an explicit argument.1765* [BUG #147](https://github.com/BurntSushi/ripgrep/issues/147):1766  Clarify documentation for --replace.1767176817690.2.11770=====1771Feature enhancements:17721773* Added or improved file type filtering for Clojure and SystemVerilog.1774* [FEATURE #89](https://github.com/BurntSushi/ripgrep/issues/89):1775  Add a --null flag that outputs a NUL byte after every file path.17761777Bug fixes:17781779* [BUG #98](https://github.com/BurntSushi/ripgrep/issues/98):1780  Fix a bug in single threaded mode when if opening a file failed, ripgrep1781  quit instead of continuing the search.1782* [BUG #99](https://github.com/BurntSushi/ripgrep/issues/99):1783  Fix another bug in single threaded mode where empty lines were being printed1784  by mistake.1785* [BUG #105](https://github.com/BurntSushi/ripgrep/issues/105):1786  Fix an off-by-one error with --column.1787* [BUG #106](https://github.com/BurntSushi/ripgrep/issues/106):1788  Fix a bug where a whitespace only line in a gitignore file caused ripgrep1789  to panic (i.e., crash).1790179117920.2.01793=====1794Feature enhancements:17951796* Added or improved file type filtering for VB, R, F#, Swift, Nim, JavaScript,1797  TypeScript1798* [FEATURE #20](https://github.com/BurntSushi/ripgrep/issues/20):1799  Adds a --no-filename flag.1800* [FEATURE #26](https://github.com/BurntSushi/ripgrep/issues/26):1801  Adds --files-with-matches flag. Like --count, but only prints file paths1802  and doesn't need to count every match.1803* [FEATURE #40](https://github.com/BurntSushi/ripgrep/issues/40):1804  Switch from using `.rgignore` to `.ignore`. Note that `.rgignore` is1805  still supported, but deprecated.1806* [FEATURE #68](https://github.com/BurntSushi/ripgrep/issues/68):1807  Add --no-ignore-vcs flag that ignores .gitignore but not .ignore.1808* [FEATURE #70](https://github.com/BurntSushi/ripgrep/issues/70):1809  Add -S/--smart-case flag (but is disabled by default).1810* [FEATURE #80](https://github.com/BurntSushi/ripgrep/issues/80):1811  Add support for `{foo,bar}` globs.18121813Many many bug fixes. Thanks every for reporting these and helping make1814`ripgrep` better! (Note that I haven't captured every tracking issue here,1815some were closed as duplicates.)18161817* [BUG #8](https://github.com/BurntSushi/ripgrep/issues/8):1818  Don't use an intermediate buffer when --threads=1. (Permits constant memory1819  usage.)1820* [BUG #15](https://github.com/BurntSushi/ripgrep/issues/15):1821  Improves the documentation for --type-add.1822* [BUG #16](https://github.com/BurntSushi/ripgrep/issues/16),1823  [BUG #49](https://github.com/BurntSushi/ripgrep/issues/49),1824  [BUG #50](https://github.com/BurntSushi/ripgrep/issues/50),1825  [BUG #65](https://github.com/BurntSushi/ripgrep/issues/65):1826  Some gitignore globs were being treated as anchored when they weren't.1827* [BUG #18](https://github.com/BurntSushi/ripgrep/issues/18):1828  --vimgrep reported incorrect column number.1829* [BUG #19](https://github.com/BurntSushi/ripgrep/issues/19):1830  ripgrep was hanging waiting on stdin in some Windows terminals. Note that1831  this introduced a new bug:1832  [#94](https://github.com/BurntSushi/ripgrep/issues/94).1833* [BUG #21](https://github.com/BurntSushi/ripgrep/issues/21):1834  Removes leading `./` when printing file paths.1835* [BUG #22](https://github.com/BurntSushi/ripgrep/issues/22):1836  Running `rg --help | echo` caused `rg` to panic.1837* [BUG #24](https://github.com/BurntSushi/ripgrep/issues/22):1838  Clarify the central purpose of rg in its usage message.1839* [BUG #25](https://github.com/BurntSushi/ripgrep/issues/25):1840  Anchored gitignore globs weren't applied in subdirectories correctly.1841* [BUG #30](https://github.com/BurntSushi/ripgrep/issues/30):1842  Globs like `foo/**` should match contents of `foo`, but not `foo` itself.1843* [BUG #35](https://github.com/BurntSushi/ripgrep/issues/35),1844  [BUG #81](https://github.com/BurntSushi/ripgrep/issues/81):1845  When automatically detecting stdin, only read if it's a file or a fifo.1846  i.e., ignore stdin in `rg foo < /dev/null`.1847* [BUG #36](https://github.com/BurntSushi/ripgrep/issues/36):1848  Don't automatically pick memory maps on MacOS. Ever.1849* [BUG #38](https://github.com/BurntSushi/ripgrep/issues/38):1850  Trailing whitespace in gitignore wasn't being ignored.1851* [BUG #43](https://github.com/BurntSushi/ripgrep/issues/43):1852  --glob didn't work with directories.1853* [BUG #46](https://github.com/BurntSushi/ripgrep/issues/46):1854  Use one fewer worker thread than what is provided on CLI.1855* [BUG #47](https://github.com/BurntSushi/ripgrep/issues/47):1856  --help/--version now work even if other options are set.1857* [BUG #55](https://github.com/BurntSushi/ripgrep/issues/55):1858  ripgrep was refusing to search /proc/cpuinfo. Fixed by disabling memory1859  maps for files with zero size.1860* [BUG #64](https://github.com/BurntSushi/ripgrep/issues/64):1861  The first path given with --files set was ignored.1862* [BUG #67](https://github.com/BurntSushi/ripgrep/issues/67):1863  Sometimes whitelist globs like `!/dir` weren't interpreted as anchored.1864* [BUG #77](https://github.com/BurntSushi/ripgrep/issues/77):1865  When -q/--quiet flag was passed, ripgrep kept searching even after a match1866  was found.1867* [BUG #90](https://github.com/BurntSushi/ripgrep/issues/90):1868  Permit whitelisting hidden files.1869* [BUG #93](https://github.com/BurntSushi/ripgrep/issues/93):1870  ripgrep was extracting an erroneous inner literal from a repeated pattern.