summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)Author
2022-05-11printer: fix duplicative replacement in multiline modeag/fix-multiline-replace-duplicateAndrew Gallant
This furthers our kludge of dealing with PCRE2's look-around in the printer. Because of our bad abstraction boundaries, we added a kludge to deal with PCRE2 look-around by extending the bytes we search by a fixed amount to hopefully permit any look-around to operate. But because of that kludge, we wind up over extending ourselves in some cases and dragging along those extra bytes. We had fixed this for simple searching by simply rejecting any matches past the end point. But we didn't do the same for replacements. So this commit extends our kludge to replacements. Thanks to @sonohgong for diagnosing the problem and proposing a fix. I mostly went with their solution, but adding the new replacement routine as an internal helper rather than a new APIn in the 'grep-matcher' crate. Fixes #2095, Fixes #2208
2022-05-09ignore/types: improve Bazel globsKeith Smiley
MODULE.bazel is a new file, and WORKSPACE.bazel was always supported similar to BUILD.bazel vs BUILD. PR #2203
2022-05-09cargo: use SPDX license format for all cratesAlex Touchet
This was done for the main crate in d11a3b33773620bcc593f82b557757f0c2ec8a05. See also #987. PR #2204
2022-04-25ignore/types: add '*.hh' to C++ headersConrad Meyer
Like .hpp, .hh is an occasionally used extension for C++ headers (to distinguish them from C headers). At least one popular project, FreeBSD, uses this extension. See also: https://docs.fileformat.com/programming/hh/ PR #2192
2022-04-19ignore/types: add '*.asp' for asp typeMatrix Dai
The `*.asp` was not included in the type "asp" when it was added. https://github.com/BurntSushi/ripgrep/pull/1134 PR #2188
2022-03-21deps: bump memmap2 to 0.5Andrew Gallant
Looking at the memmap2 CHANGELOG, there don't appear to be any breaking changes that impact us.
2022-03-21deps: update everythingAndrew Gallant
Surprisingly looks like no new dependencies were added! Yay! And we removed an extra copy of 'cfg-if' due to what appears to be an updated in 'packed_simd_2'. Otherwise, all updates appear to be minor things.
2022-03-21warnings: remove/tweak some dead codeAndrew Gallant
It looks like the dead code detector got better, so do a little code cleanup.
2022-03-21ci: fix failing nightly-arm build on ci workflowarcsi42
This commit updates the Ubuntu install script to include brotli and zstd, which are needed for tests. We also fix the Ubuntu install script to work in environments that don't have 'sudo'. Instead of creating a totally separate script, we preserve a single point of truth for these things and just make the script a bit more flexible. NOT seen in this commit is that we have built and updated the arm Docker image. I'm hoping this fixes the GLIBC version issues we're seeing in CI. Fixes #2130, Closes #2132
2021-11-22doc: transcoding is done in addition to searchMateusz Konieczny
Even if transcoding would be faster than search it would still incur performance penalty. We make this clearer by tweaking the wording. PR #2079
2021-11-15cli: improve configuration failure modemi-wada
This improves the error message printed when ripgrep can't read the file path pointed to by RIPGREP_CONFIG_PATH. Specifically, before this change: $ RIPGREP_CONFIG_PATH=no_exist_path rg 'search regex' no_exist_path: No such file or directory (os error 2) And now after this change: $ RIPGREP_CONFIG_PATH=no_exist_path rg 'search regex' failed to read the file specified in RIPGREP_CONFIG_PATH: no_exist_path: No such file or directory (os error 2) In the above examples, the first failure mode looks obvious, but that's only because RIPGREP_CONFIG_PATH is being set at the same time that we run the command. Often, the environment variable is set elsewhere and the error message could be confusing outside of that context. Closes #1990
2021-11-15ignore/types: add fenneljgart
https://fennel-lang.org/ PR #2069
2021-11-12ignore: if require_git is false, don't stat .gitJosh Triplett
I've confirmed via strace that this eliminates a pile of stat calls. PR #2052
2021-10-27ignore/types: improve 'vim' and 'vimscript' typesLinda_pp
This adds various Vim config files to the glob patterns. PR #2044
2021-10-24ignore/types: add lilypondjgart
This adds file detection for lilypond: https://lilypond.org/ PR #2038
2021-10-22ignore/types: add hyjgart
This adds file detection for hy: http://hylang.org/ PR #2033
2021-10-19ignore/types: fix futhark type extensionPhilip Munksgaard
Previously, the 'fut' type only matches files called '.fut', while in reality we want to match all files with the '.fut' extension. This commit fixes that issue. PR #2027
2021-10-14ignore/types: add janetjgart
This adds file detection for janet: https://janet-lang.org/ PR #2018
2021-10-12readme: update install commands for Debian/UbuntuMarkus Dosch
This got overlooked during the last release. PR #2016
2021-07-21doc: add -F/--fixed-strings to "common options"Dash
#607 is the top result for the search "ripgrep disable regex". I think it makes sense to add it to the user guide, since it's a very useful flag. PR #1945
2021-07-19doc: --field-match-separator's default value is ':'Andrew Gallant
The docs were out of sync with the implementation. Likely a copy-and-paste error. Fixes #1939
2021-07-14doc: fix typo "used" -> "use"Joe Lencioni
PR #1936
2021-07-13ignore/types: add texinfojgart
https://www.gnu.org/software/texinfo/ PR #1934
2021-06-30ignore/types: add CUDAEyal
Fixes #1918
2021-06-26changelog: add #1911 bug fixAndrew Gallant
2021-06-26searcher: disable mmap searching on non-64 bitAndrew Gallant
It looks like it's possible for mmap to succeed on 32-bit systems even when the full file can't be addressed in memory. This used to work prior to ripgrep 13, but (maybe) something about statically linking vcruntime has caused this to now fail. It's no big deal to disable mmap searching on 32-bit, so we just do that instead of returning incorrect results. Fixes #1911
2021-06-24doc: fix typo in --glob flag docsSergio Benitez
PR #1899
2021-06-20ignore/types: add file extensions for CrystalKostya M
It sounds like Projectfile is no longer being used, but we should keep it around in case folks are still using it. It's unlikely that its presence will do much if any harm. PR #1904
2021-06-18globset-0.4.8globset-0.4.8Andrew Gallant
2021-06-18globset: fix compilation when serde is enabledGleb Pomykalov
PR #1903
2021-06-15doc: fix formatting of nested listkotborealis
Markdown wants 4 spaces, not 2. PR #1894
2021-06-15pkg: fix version number for 13.0.0 releaseAndrew Gallant
Fixes #1896
2021-06-12regex: update regression testAndrew Gallant
Sadly, PCRE2 has different behavior (but doesn't panic). We should look into that, but for now, this is good enough. Also, update the CHANGELOG. Ref #1891
2021-06-12regex: fix -w when regex can match empty stringAndrew Gallant
This is a weird bug where our optimization for handling -w more quickly than we would otherwise failed. In particular, if the original regex can match the empty string, then our word boundary detection would produce invalid indices to the start the next search at. We "fix" it by simply bailing when the indices are known to be incorrect. This wasn't a problem in a previous release since ripgrep 13 tweaked how word boundaries are detected in commit efd9cfb2. Fixes #1891
2021-06-12ci: use musl to build debian artifactAndrew Gallant
Previously, I was trying to be a good citizen and let ripgrep use the system libc. But it turns out that building ripgrep on Arch with a newer version of glibc than what is in Ubuntu results in the whole thing breaking. Arguably, I should build the Debian artifact on an Ubuntu or Debian machine of an appropriate version, but that's too much work. If people really want that, then they can install some ancient version of ripgrep from their Ubuntu/Debian repo. Since we were already statically linking PCRE2, we go the whole nine yards and statically link the entire thing. Fixes #1890
2021-06-12changelog: add template for next entryAndrew Gallant
2021-06-12pkg: update brew tap version to 13.0.0Andrew Gallant
2021-06-12release: work around GitHub Actions weirdnessAndrew Gallant
2021-06-12release: add note about pushing changesAndrew Gallant
2021-06-1213.0.013.0.0Andrew Gallant
2021-06-12changelog: final prep before ripgrep 13 releaseAndrew Gallant
2021-06-12deps/grep: update minimal versionsAndrew Gallant
2021-06-12grep-0.2.8grep-0.2.8Andrew Gallant
2021-06-12deps/printer: update minimal versionsAndrew Gallant
2021-06-12grep-printer-0.1.6grep-printer-0.1.6Andrew Gallant
2021-06-12deps/searcher: update minimal versionsAndrew Gallant
2021-06-12grep-searcher-0.1.8grep-searcher-0.1.8Andrew Gallant
2021-06-12deps/pcre2: update minimal versionsAndrew Gallant
2021-06-12grep-pcre2-0.1.5grep-pcre2-0.1.5Andrew Gallant
2021-06-12pcre2: update minimal version to 0.2.3Andrew Gallant