1. 08 3月, 2017 7 次提交
  2. 01 3月, 2017 1 次提交
  3. 26 2月, 2017 2 次提交
  4. 24 2月, 2017 2 次提交
  5. 20 2月, 2017 2 次提交
  6. 19 2月, 2017 7 次提交
    • A
      Tweak how binary files are handled internally. · 79d40d0e
      Andrew Gallant 提交于
      This commit fixes two issues. The first issue is that if a file contained
      many NUL bytes without any LF bytes, then the InputBuffer would read the
      entire file into memory. This is not typically a problem, but if you run
      rg on /proc, then bad things can happen when reading virtual memory mapping
      files. Arguably, such files should be ignored, but we should also try to
      avoid exhausting memory too. We fix this by pushing the `-a/--text` flag
      option down into InputBuffer, so that it knows to stop immediately if it
      finds a NUL byte.
      
      The other issue this fixes is that binary detection is now applied to every
      buffer instead of just the first one. This helps avoid detecting too many
      files as plain text if the first parts of a binary file happen to contain
      no NUL bytes. This issue still persists somewhat in the memory map
      searcher, since we probably don't want to search the entire file upfront
      for NUL bytes before actually performing our search. Instead, we search the
      first 10KB for now.
      
      Fixes #52, Fixes #311
      79d40d0e
    • A
      Don't parses regexes with --files. · 525b2780
      Andrew Gallant 提交于
      When the --files flag is given, ripgrep would still try to parse some of
      the positional arguments as regexes. Don't do that.
      
      Fixes #326
      525b2780
    • A
      Permit --heading to override --no-heading. · 16de4792
      Andrew Gallant 提交于
      @kbknapp <3
      
      Fixes #327
      16de4792
    • A
      update termcolor dep · a114b860
      Andrew Gallant 提交于
      a114b860
    • A
      termcolor-0.3.0 · a5a16ebb
      Andrew Gallant 提交于
      a5a16ebb
    • A
      Remove Windows deps from ripgrep proper. · 8ac5bc01
      Andrew Gallant 提交于
      All Windows specific code has been (mostly) pushed out of ripgrep and
      into its constituent libraries.
      8ac5bc01
    • S
  7. 13 2月, 2017 1 次提交
  8. 10 2月, 2017 2 次提交
    • P
      termcolor: add support for output to standard error · 22cb644e
      Peter Williams 提交于
      This is essentially a rename of the existing `Stdout` type to `StandardStream`
      and a change of its constructor from a single `new()` function to have two
      `stdout()` and `stderr()` functions.
      
      Under the hood, we add add internal IoStandardStream{,Lock} enums that allow
      us to abstract between Stdout and Stderr conveniently. The rest of the needed
      changes then fall out fairly naturally.
      
      Fixes #324.
      
      [breaking-change]
      22cb644e
    • A
      Add .twig as a Filetype · e424f874
      Ahmed El Gabri 提交于
      e424f874
  9. 31 1月, 2017 2 次提交
  10. 24 1月, 2017 1 次提交
  11. 22 1月, 2017 1 次提交
  12. 21 1月, 2017 1 次提交
  13. 19 1月, 2017 3 次提交
  14. 18 1月, 2017 3 次提交
  15. 17 1月, 2017 1 次提交
  16. 16 1月, 2017 1 次提交
  17. 14 1月, 2017 3 次提交