Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add grep-cli crate #1038

Merged
merged 4 commits into from
Sep 5, 2018
Merged

add grep-cli crate #1038

merged 4 commits into from
Sep 5, 2018

Commits on Sep 5, 2018

  1. grep-cli: introduce new grep-cli crate

    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
    BurntSushi committed Sep 5, 2018
    Configuration menu
    Copy the full SHA
    174422b View commit details
    Browse the repository at this point in the history
  2. ripgrep: add --line-buffered and --block-buffered

    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.
    BurntSushi committed Sep 5, 2018
    Configuration menu
    Copy the full SHA
    43380b8 View commit details
    Browse the repository at this point in the history
  3. ripgrep: add --pre-glob flag

    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.
    BurntSushi committed Sep 5, 2018
    Configuration menu
    Copy the full SHA
    97b8be5 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    0878628 View commit details
    Browse the repository at this point in the history