summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)Author
2018-09-07TRASH: ci: test release buildag/prepare-0.10.0Andrew Gallant
We test the release process in Travis by setting TRAVIS_TAG explicitly. We test the release process in Appveyor by switching to a branch test.
2018-09-07ci: clean up appveyorAndrew Gallant
Remove some outdated comments and unused config. Also, make the regex for matching tags a bit more specific.
2018-09-07ci: remove 'branch' condition for deploymentAndrew Gallant
Travis docs[1] say this is ignore when 'tags' is used. [1] - https://docs.travis-ci.com/user/deployment/#conditional-releases-with-on
2018-09-07deb: add completionsAndrew Gallant
This commit adds Bash, zsh and fish completions to the Debian binary package. Fixes #1032
2018-09-07deps: update versions for all cratesAndrew Gallant
I don't think every change here is needed, but this ensures we're using the latest version of every direct dependency.
2018-09-07deps: minor updatesAndrew Gallant
2018-09-07scripts: add copy-examplesAndrew Gallant
This is a preliminary script to copy example code from a Markdown file into a crate's example directory. This is intended to be used for the upcoming libripgrep guide, but we don't commit any examples yet.
2018-09-07simplegrep: touch upAndrew Gallant
2018-09-07grep: add clap and regex dev dependencies to grepAndrew Gallant
These are (or will be) used in grep's examples.
2018-09-07grep-searcher: add Box<...> impl for SinkAndrew Gallant
We initially did not have this impl because the first revision of the Sink trait was much more complicated. In particular, each method was parameterized over a Matcher. But not every Sink impl actually needs a Matcher, and it is just as easy to borrow a Matcher explicitly, so the added parameterization wasn't holding its own. This does permit Sink implementations to be used as trait objects. One key use case here is to reduce compile times, since there is quite a bit of code inside grep-searcher that is parameterized on Sink. Unfortunately, that code is *also* parameterized on Matcher, and the various printers in grep-printer are also parameterized on Matcher, which means Sink trait objects are necessary but no sufficient for a major reduction in compile times. Unfortunately, the path to making Matcher object safe isn't quite clear. Extension traits maybe? There's also stuff in the Serde ecosystem that might help, but the type shenanigans can get pretty gnarly.
2018-09-07doc: minor touchups to API docsAndrew Gallant
2018-09-07grep-printer: delete unused codeAndrew Gallant
2018-09-07grep-matcher: add LineTerminator::is_suffixAndrew Gallant
This centralizes the logic for checking whether a line has a line terminator or not.
2018-09-07readme: a few clarificationsAndrew Gallant
2018-09-04deps: update various depsAndrew Gallant
2018-09-04deps: update grep versionAndrew Gallant
2018-09-04grep-0.2.1grep-0.2.1Andrew Gallant
2018-09-04changelog: assign feature idgrep-cli-0.1.0Andrew Gallant
2018-09-04windows: fix unused warnings on WindowsAndrew Gallant
2018-09-04ripgrep: add --pre-glob flagAndrew Gallant
The --pre-glob flag is like the --glob flag, except it applies to filtering files through the preprocessor instead of for search. This makes it possible to apply the preprocessor to only a small subset of files, which can greatly reduce the process overhead of using a preprocessor when searching large directories.
2018-09-04ripgrep: add --line-buffered and --block-bufferedAndrew Gallant
These flags provide granular control over ripgrep's buffering strategy. The --line-buffered flag can be genuinely useful in certain types of shell pipelines. The --block-buffered flag has a murkier use case, but we add it for completeness.
2018-09-04grep-cli: introduce new grep-cli crateAndrew Gallant
This commit moves a lot of "utility" code from ripgrep core into grep-cli. Any one of these things might not be worth creating a new crate, but combining everything together results in a fair number of a convenience routines that make up a decent sized crate. There is potentially more we could move into the crate, but much of what remains in ripgrep core is almost entirely dealing with the number of flags we support. In the course of doing moving things to the grep-cli crate, we clean up a lot of gunk and improve failure modes in a number of cases. In particular, we've fixed a bug where other processes could deadlock if they write too much to stderr. Fixes #990
2018-09-03ignore/types: add pascal typehelloer
PR #1036
2018-08-31doc: fix typosJakub Wilk
2018-08-30deps: update other cratesAndrew Gallant
2018-08-30deps: update termcolor for perf tweaksAndrew Gallant
2018-08-29changelog: fix typoAndrew Gallant
2018-08-29changelog: updateAndrew Gallant
This brings the changelog up to date with HEAD and rewords a few things.
2018-08-28ignore: add into_path for DirEntry (#1031)Aaron Power
This commit adds ignore::DirEntry::into_path to match the corresponding method on walkdir::DirEntry.
2018-08-27doc: clarify and fix typoAndrew Gallant
Clarify that --byte-offset may be wrong if the source isn't being read directly. Also tweak the README a bit. And remove a damned Oxford comma.
2018-08-27ripgrep: use 'ignore' for skipping stdoutAndrew Gallant
This removes ripgrep-specific code for filtering files that correspond to stdout and instead uses the 'ignore' crate's functionality for doing the same.
2018-08-27ignore: add 'stdout' skipping to the walkerAndrew Gallant
This commit adds a new 'skip_stdout' option to the directory walker. When enabled, it will skip yielding any directory entries that are believed to correspond to stdout for the current process. This is useful for filtering out 'results' in a command like 'grep -r foo > results' in order to avoid an unbounded feedback mechanism.
2018-08-27complete: don't complete bare pattern after -fdana
2018-08-26ripgrep: add --sort and --sortr flagsAndrew Gallant
These flags each accept one of five choices: none, path, modified, accessed or created. The value indicates how the results are sorted. For --sort, results are sorted in ascending order where as for --sortr, results are sorted in descending order. Closes #404
2018-08-26ignore: add sort_by_file_path builder methodAndrew Gallant
This permits callers to sort entries by their full file path, which makes it easy to query for various file statistics. It would have been better to provide a comparator on DirEntry itself, similar to how walkdir does it, but this seems to require quite a bit of work to make the types work out, assuming we want to continue to use walkdir's sorting support (we do).
2018-08-26ignore: add 'same_file_system' optionAndrew Gallant
This commit adds a 'same_file_system' option to the walk builder. For single threaded walking, it defers to the walkdir crate, which has the same option. The bulk of this commit implements this flag for the parallel walker. We add one very feeble test for this. The parallel walker is now officially a complete mess. Closes #321
2018-08-26deps: more updatesAndrew Gallant
2018-08-25ripgrep: use winapi-util for stdin_is_readableAndrew Gallant
2018-08-25deps: update various depsAndrew Gallant
This includes a new crate, winapi-util, that is now used in wincolor, walkdir and same-file.
2018-08-23changelog: fix typoTim Kilbourn
Fuchsia is a pain to spell. PR #1026
2018-08-23doc: clarify use of SIMD featuresAndrew Gallant
You need a nightly compiler. Ref #188
2018-08-23deps: update walkdir minimum versionAndrew Gallant
We'll want to be using the new `same_file_system` option soon.
2018-08-22deps: update dependenciesAndrew Gallant
This includes an update to walkdir 2.2.2, which includes a `same_file_system` option.
2018-08-21deps: update clapAndrew Gallant
Update clap to the latest version. Also, drop the ansi_term dependency by disabling color output in clap's error messages.
2018-08-21deps: various patch upgradesAndrew Gallant
2018-08-21ignore: fix false positive in path_is_symlinkAndrew Gallant
This commit fixes a bug where the first path always reported itself as as symlink via `path_is_symlink`. Part of this fix includes updating walkdir to 2.2.1, which also includes a corresponding bug fix. Fixes #984
2018-08-21release: better support for binary Debian packageAndrew Gallant
This commit beefs up the package metadata used by the 'cargo deb' tool to produce a binary dpkg. In particular, we now include ripgrep's man page. This commit includes a new script, 'ci/build_deb.sh', which will handle the build process for a dpkg, which has become a bit more nuanced than just running 'cargo deb'. We don't (yet) run this script in CI. Fixes #842
2018-08-21doc: update ripgrep's descriptionAndrew Gallant
This now mentions PCRE2 support.
2018-08-21grep-printer: fix bug in printing truncated linesAndrew Gallant
When emitting color, the printer wasn't checking whether the line exceeded the maximum allowed length.
2018-08-21tests: touch up tests on WindowsAndrew Gallant
This fixes warnings and adds an additional invalid UTF-8 test that will run on Windows.