Andrew Gallant
d79add341b
Move all gitignore matching to separate crate.
...
This PR introduces a new sub-crate, `ignore`, which primarily provides a
fast recursive directory iterator that respects ignore files like
gitignore and other configurable filtering rules based on globs or even
file types.
This results in a substantial source of complexity moved out of ripgrep's
core and into a reusable component that others can now (hopefully)
benefit from.
While much of the ignore code carried over from ripgrep's core, a
substantial portion of it was rewritten with the following goals in
mind:
1. Reuse matchers built from gitignore files across directory iteration.
2. Design the matcher data structure to be amenable for parallelizing
directory iteration. (Indeed, writing the parallel iterator is the
next step.)
Fixes #9 , #44 , #45
2016-10-29 20:48:59 -04:00
Andrew Gallant
12b2b1f624
Merge pull request #198 from sanga/patch-1
...
update python types to include Cython files
2016-10-28 10:22:22 -04:00
Tim Sampson
3aaf550ca5
update python types to include Cython files
2016-10-28 09:24:21 +03:00
Andrew Gallant
d4876cd064
Merge pull request #197 from SimenB/zsh-type
...
Add zsh type
2016-10-27 11:56:32 -04:00
simbekkh
867a57e176
Add zsh type
2016-10-27 17:36:26 +02:00
Andrew Gallant
ec4904df33
Merge pull request #195 from 8573/8573/readme/note-Nix-pkgs/1
...
Mention Nix package in README
2016-10-26 18:52:32 -04:00
c74d
c4ea157cb7
Mention Nix package in README
...
In the `README.md` document, where said document documents the
availability of pre-built packages of ripgrep, document the
availability of such a package from the package management system Nix.
2016-10-26 03:01:18 +00:00
Andrew Gallant
0156967f4c
Merge pull request #192 from SimenB/patch-1
...
Use svg for travis badge
2016-10-22 18:00:23 -04:00
Simen Bekkhus
3238707b0b
Use svg for travis badge
2016-10-22 23:44:38 +02:00
Andrew Gallant
31fbae597f
Merge pull request #183 from carlwgeorge/copr-instructions
...
Add instructions for installation on Fedora 24+ and RHEL/CentOS 7.
2016-10-16 10:17:17 -04:00
Andrew Gallant
f2e1711781
Fix bug when processing parent gitignore files.
...
This particular bug was triggered whenever a search was run in a directory
with a parent directory that contains a relevant .gitignore file. In
particular, before matching against a parent directory's gitignore rules,
a path's leading `./` was not stripped, which results in errant matching.
We now make sure `./` is stripped.
Fixes #184 .
2016-10-16 10:15:11 -04:00
Andrew Gallant
94d600e6e1
Update deps.
2016-10-16 10:12:49 -04:00
Carl George
b904c5d9dc
Add instructions for installation on Fedora 24+ and RHEL/CentOS 7.
...
Please note that the referenced copr repository should just be a temporary home while the Fedora/EPEL package review is pending.
https://bugzilla.redhat.com/show_bug.cgi?id=1380442
2016-10-16 04:13:54 -05:00
Andrew Gallant
5a29417796
update archlinux PKGBUILD
2016-10-13 21:01:49 -04:00
Andrew Gallant
f694800768
Update brew tap.
2016-10-13 21:00:18 -04:00
Andrew Gallant
bd1c9e9499
Merge pull request #175 from little-dude/master
...
add .tcl file extension
2016-10-13 16:00:40 -04:00
Corentin Henry
f04b0dd95c
add .tcl file extension
2016-10-13 11:28:34 -07:00
Andrew Gallant
5487dffefa
Merge pull request #172 from alexlafroscia/patch-1
...
Add `handlebars` type
2016-10-13 06:38:27 -04:00
Alex LaFroscia
1fc6787648
Shorten name of Handlebars type
2016-10-12 17:08:24 -07:00
Alex LaFroscia
11e164aec9
Add handlebars
type
2016-10-12 17:07:04 -07:00
Andrew Gallant
1c1331d926
Merge pull request #170 from sfackler/patch-1
...
Add .gradle as a groovy extension pattern
2016-10-12 15:59:57 -04:00
Steven Fackler
cbe94823d2
Add .gradle as a groovy extension pattern
...
Gradle is a build system for JVM-based languages that is configured via a Groovy DSL.
2016-10-12 11:07:27 -07:00
Andrew Gallant
d8712daf27
0.2.3
2016-10-11 19:44:54 -04:00
Andrew Gallant
7cbbef019f
changelog 0.2.3
2016-10-11 19:44:50 -04:00
Andrew Gallant
4d29d886e5
Merge pull request #168 from durka/doc-threads
...
clarify docs for --threads
2016-10-11 19:27:11 -04:00
Andrew Gallant
247a9398f4
Switch to thread_local crate in lieu of thread_local!.
...
This is to work around a bug where using a thread_local! was causing
a segfault on macos.
Fixes #164 .
2016-10-11 18:23:49 -04:00
Alex Burka
4c3025ab1c
clarify docs for --threads
2016-10-11 17:32:51 -04:00
Andrew Gallant
4981991a6e
0.2.2
2016-10-10 22:24:36 -04:00
Andrew Gallant
51440f59cd
Don't include HomebrewFormula in crate.
2016-10-10 22:24:28 -04:00
Andrew Gallant
7b8a8d77d0
changelog 0.2.2
2016-10-10 22:18:21 -04:00
Andrew Gallant
4737326ed3
Update regex-syntax for bug fix.
...
The bug fix was in expression pretty printing. ripgrep parses the regex
into an AST and may do some modifications to it, which requires the
ability to go from string -> AST -> string' -> AST' where string == string'
implies AST == AST'.
Also, add a regression test for the specific regex that tripped the bug.
Fixes #156 .
2016-10-10 22:04:29 -04:00
Andrew Gallant
a3537aa32a
Update darwin cfg attributes.
2016-10-10 21:48:47 -04:00
Andrew Gallant
d3e118a786
Fix debug expression statement.
2016-10-10 21:48:34 -04:00
Andrew Gallant
4e52059ad6
Disable regression_131 test on darwin.
...
It's not clear why it's failing. Maybe it doesn't permit certain
characters in file paths?
2016-10-10 21:03:11 -04:00
Andrew Gallant
60c016c243
Fix docopt usage string. Gah.
2016-10-10 20:49:39 -04:00
Andrew Gallant
4665128f25
Clarify documentation for --replace.
...
Also add a minor clarification for --type-add.
Fixes #147
2016-10-10 20:19:45 -04:00
Andrew Gallant
dde5bd5a80
globset-0.1.0
2016-10-10 20:07:13 -04:00
Andrew Gallant
762ad44f71
add version marker
2016-10-10 20:06:35 -04:00
Andrew Gallant
705386934d
Fill in globset/Cargo.toml with more details.
2016-10-10 19:50:21 -04:00
Andrew Gallant
97bbc6ef11
Update appveyor to test subcrates.
2016-10-10 19:35:47 -04:00
Andrew Gallant
27a980c1bc
Fix symlink test.
...
We attempt to run it on Windows, but I'm getting "access denied" errors
when trying to create a file symlink. So we disable the test on Windows.
2016-10-10 19:34:57 -04:00
Andrew Gallant
e8645dc8ae
style nits
2016-10-10 19:27:12 -04:00
Andrew Gallant
e96d93034a
Finish overhaul of glob matching.
...
This commit completes the initial move of glob matching to an external
crate, including fixing up cross platform support, polishing the
external crate for others to use and fixing a number of bugs in the
process.
Fixes #87 , #127 , #131
2016-10-10 19:24:18 -04:00
Andrew Gallant
bc5accc035
Merge pull request #161 from moshen/update-homebrew-readme
...
Update Homebrew instructions in the README
2016-10-10 19:11:50 -04:00
Andrew Gallant
c9d0ca8257
Merge pull request #157 from CannedYerins/follow-explicit-args
...
Always follow symlinks on explicit file arguments
2016-10-10 19:11:10 -04:00
Andrew Gallant
45fe4aab96
Merge pull request #155 from theamazingfedex/adding-extra-md-filetype
...
Adding extra .md filetype for ease of access to Markdown filetypes
2016-10-10 19:09:15 -04:00
Andrew Gallant
97f981fbcb
Merge pull request #154 from theamazingfedex/adding-spark-filetype
...
Adding .spark filetype
2016-10-10 19:08:20 -04:00
Andrew Gallant
59329dcc61
Merge pull request #153 from theamazingfedex/master
...
Adding .config filetype
2016-10-10 19:08:06 -04:00
Colin Kennedy
604da8eb86
Update Homebrew instructions in the README
2016-10-09 23:45:02 -05:00
Ian Kerins
1c964372ad
Always follow symlinks on explicit file arguments.
2016-10-08 22:40:03 -04:00