summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)Author
2016-09-27Merge pull request #111 from gsquire/max-depthAndrew Gallant
Max depth option
2016-09-27add a max-depth option for directory traversalGarrett Squire
CR and add integration test
2016-09-27Correct example with --type-add.Andrew Gallant
Fixes #118.
2016-09-27Merge pull request #114 from cetra3/colorChoiceAndrew Gallant
Create Colour Choice struct to adjust colours depending on platform
2016-09-27Add colour choicecetra3
2016-09-27Merge pull request #115 from nickstenning/update-brew-hashesAndrew Gallant
Update brew 0.2.1 package hashes
2016-09-27Update brew 0.2.1 package hashesNick Stenning
2016-09-26fix use of --type-addAndrew Gallant
2016-09-26brew 0.2.1Andrew Gallant
2016-09-260.2.10.2.1Andrew Gallant
2016-09-26changelog 0.2.1Andrew Gallant
2016-09-26Don't print empty lines in single threaded mode.Andrew Gallant
Fixes #99.
2016-09-26Add a --null flag.Andrew Gallant
This flag causes a NUL byte to follow any file path in ripgrep's output. Closes #89.
2016-09-26Fix an off-by-one error with --column.Andrew Gallant
Fixes #105.
2016-09-26Merge branch 'gitignore_blank_lines'Andrew Gallant
2016-09-26Add regression test.Andrew Gallant
Fixes #106.
2016-09-26Allow (and ignore) whitespace-only lines in .gitignore filesTom Jackson
Git considers these to be blank lines.
2016-09-26Don't quit if opening a file fails.Andrew Gallant
This was already working correctly in multithreaded mode, but in single threaded mode, a file failing to open caused search to stop. That's bad. Fixes #98.
2016-09-26Don't initialize ignores for file arguments.Andrew Gallant
We'll never use them, so it's wasted effort.
2016-09-26Merge pull request #107 from kaushalmodi/add-systemverilog-typeAndrew Gallant
Add SystemVerilog (SV) type
2016-09-26Add SystemVerilog (SV) typeKaushal Modi
2016-09-26Merge pull request #100 from emlyn/patch-1Andrew Gallant
Recognise cljc and cljx extensions as Clojure(script)
2016-09-26Clojure files can also end in cljc or cljxEmlyn Corrin
(see https://github.com/clojure/clojurescript/wiki/Using-cljc)
2016-09-25update brew formula to 0.2.0Andrew Gallant
2016-09-250.2.00.2.0Andrew Gallant
2016-09-25bump grep to 0.1.3Andrew Gallant
2016-09-25grep 0.1.3Andrew Gallant
2016-09-25changelog 0.2.0Andrew Gallant
2016-09-25fix windowsAndrew Gallant
2016-09-25Don't use an intermediate buffer when --threads=1.Andrew Gallant
Fixes #8
2016-09-25Don't replace NUL bytes when searching binary files as text.Andrew Gallant
This was a result of misinterpreting a feature in grep where NUL bytes are replaced with \n. The primary reason for doing this is to avoid excessive memory usage on truly binary data. However, grep only does this when searching binary files as if they were binary, and which only reports whether the file matched or not. When grep is told to search binary data as text (the -a/--text flag), then it doesn't do any replacement so we shouldn't either. In general, this makes sense, because the user is essentially asserting that a particular file that looks like binary is actually text. In that case, we shouldn't try to replace any NUL bytes. ripgrep doesn't actually support searching binary data for whether it matches or not, so we don't actually need the replace_buf function. However, it does seem like a potentially useful feature.
2016-09-25Make printing paths a bit faster.Andrew Gallant
It seems silly, but on *nix, we can just dump the bytes of the path straight to the terminal. There's no need to do a UTF-8 check, which can be costly when printing lots of matches.
2016-09-25Don't union inner literals of repetitions.Andrew Gallant
If we do, this results in extracting `foofoofoo` from `(\wfoo){3}`, which is wrong. This does prevent us from extracting `foofoofoo` from `foo{3}`, which is unfortunate, but we miss plenty of other stuff too. Literal extracting needs a good rethink (all the way down into the regex engine). Fixes #93
2016-09-25On Windows, always consider stdin to be a tty.Andrew Gallant
This means that `rg pat < file` won't do the expected thing and search `fil`. Instead, it will recursively search the current directory for `pat`. This isn't ideal, but is better than the previous behavior, which was to wait for stdin when running `rg pat`, given the appearance of hanging forever. The former is an important use case, but the latter is the *central* use case of ripgrep, so we should make that work. `rg` can still be used to search stdin on Windows, it just needs to be done explicitly. e.g., `rg pat - < file` will search for `pat` in `file`. Fixes #19
2016-09-25Fix Windows compilation error.Andrew Gallant
2016-09-25Merge pull request #92 from svenstaro/patch-1Andrew Gallant
ripgrep is now in [community]
2016-09-26ripgrep is now in [community]Sven-Hendrik Haase
The README should reflect that.
2016-09-25Move --files-with-matches to less common options.Andrew Gallant
2016-09-25Permit whitelisting hidden files in ignores.Andrew Gallant
Fixes #90
2016-09-25Add curly brace alternates to glob format.Andrew Gallant
Closes #80.
2016-09-25Fix tests on Windows.Andrew Gallant
Mostly this is just using \\ instead of / in paths reported by the OS.
2016-09-25Merge pull request #71 from catchmrbharath/issue46Andrew Gallant
[Fixes #46] Use 1 less worker thread than number of threads
2016-09-25Stop after first match is found with --quiet.Andrew Gallant
Fixes #77.
2016-09-25Merge pull request #42 from andschwa/files-with-matchesAndrew Gallant
Files with matches
2016-09-25Stupid docopt.Andrew Gallant
It thinks `--type-clear is` is a flag spec.
2016-09-25Clarify documentation of --type-add.Andrew Gallant
This explains it a bit more based on end user feedback. We also fix the example, which was wrong. Fixes #82.
2016-09-25Merge pull request #84 from martinlindhe/tsAndrew Gallant
Add ts type for typescript
2016-09-25Add ts type for typescriptMartin Lindhe
2016-09-25Be more conservative with stdin.Andrew Gallant
If no paths are given to ripgrep, only read from stdin if it's a file or a FIFO. In particular, if something like `rg foo < /dev/null` is used, then don't try to read from stdin. Fixes #35, #81
2016-09-25Merge pull request #62 from martinlindhe/js-wcAndrew Gallant
--type js: include more extensions