commit_hash
stringlengths
40
40
author
stringlengths
1
57
date
timestamp[s]date
2010-07-26 04:45:09
2026-04-14 18:21:10
message
stringlengths
8
1.39M
diff
stringlengths
68
51.2k
files_changed
int64
1
136
insertions
int64
0
2.35k
deletions
int64
0
1.9k
8c95290ff67165d6b12c13cadd129fef28dd5618
Andrew Gallant
2019-02-10T12:45:08
deps: miscellaneous updates
diff --git a/Cargo.lock b/Cargo.lock index d608f4a..257e6eb 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -48,7 +48,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" [[package]] name = "cc" -version = "1.0.28" +version = "1.0.29" source = "registry+https://github.com/rust-lang/crates.io-index" ...
1
30
30
d6feeb7ff25cb026b274ee9d1d7044eb988f8d9b
Andrew Gallant
2019-02-10T12:42:37
grep-searcher-0.1.3
diff --git a/Cargo.lock b/Cargo.lock index aae4e68..d608f4a 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -146,7 +146,7 @@ dependencies = [ "grep-pcre2 0.1.2", "grep-printer 0.1.1", "grep-regex 0.1.1", - "grep-searcher 0.1.2", + "grep-searcher 0.1.3", "termcolor 1.0.4 (registry+https://github.com/rust-lang/crates...
2
4
4
626ed00c196d54411ed2793b1568b1c48ccc95a0
Andrew Gallant
2019-02-10T12:38:33
searcher: revert big-endian patch This undoes the patch to stop using bytecount on big-endian architectures. In particular, we bump our bytecount dependency to the latest release, which has a fix. This reverts commit a4868b88351318182eed3b801d0c97a106a7d38f. Fixes #1144 (again), Closes #1194
diff --git a/Cargo.lock b/Cargo.lock index ee0790d..aae4e68 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -38,7 +38,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" [[package]] name = "bytecount" -version = "0.5.0" +version = "0.5.1" source = "registry+https://github.com/rust-lang/crates.io-inde...
2
3
10
332ad1840130f8696343c115c8fad2c808da16b5
Andrew Gallant
2019-02-09T21:27:25
tests: use const constructor for atomics We did this in 05411b2b for core ripgrep, but didn't carry it over to tests.
diff --git a/tests/util.rs b/tests/util.rs index 6cfa6fc..a4bed08 100644 --- a/tests/util.rs +++ b/tests/util.rs @@ -5,12 +5,12 @@ use std::fs::{self, File}; use std::io::{self, Write}; use std::path::{Path, PathBuf}; use std::process::{self, Command}; -use std::sync::atomic::{ATOMIC_USIZE_INIT, AtomicUsize, Orderin...
1
2
2
fc3cf41247086f6c622dcce30a0a5cc1ab16015b
Andrew Gallant
2019-02-09T21:12:16
grep-searcher-0.1.2
diff --git a/Cargo.lock b/Cargo.lock index 2f1ecf1..ee0790d 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -146,7 +146,7 @@ dependencies = [ "grep-pcre2 0.1.2", "grep-printer 0.1.1", "grep-regex 0.1.1", - "grep-searcher 0.1.1", + "grep-searcher 0.1.2", "termcolor 1.0.4 (registry+https://github.com/rust-lang/crates...
2
4
4
a4868b88351318182eed3b801d0c97a106a7d38f
Andrew Gallant
2019-02-09T21:07:51
searcher: use naive line counting on big-endian This patches out bytecount's "fast" vectorized algorithm on big-endian machines, where it has been observed to fail. Going forward, bytecount should probably fix this on their end, but for now, we take a small performance hit on big-endian machines. Fixes #1144
diff --git a/grep-searcher/src/lines.rs b/grep-searcher/src/lines.rs index ed225a4..9393234 100644 --- a/grep-searcher/src/lines.rs +++ b/grep-searcher/src/lines.rs @@ -109,10 +109,17 @@ impl LineStep { } /// Count the number of occurrences of `line_term` in `bytes`. +#[cfg(target_endian = "little")] pub fn count(...
1
7
0
f99b991117f4a2f26a28946c81c459b595b4d65e
John Schmidt
2019-02-08T13:12:40
ignore/types: add zig PR #1191
diff --git a/ignore/src/types.rs b/ignore/src/types.rs index 7272611..c04450c 100644 --- a/ignore/src/types.rs +++ b/ignore/src/types.rs @@ -303,6 +303,7 @@ const DEFAULT_TYPES: &'static [(&'static str, &'static [&'static str])] = &[ ("xz", &["*.xz", "*.txz"]), ("yacc", &["*.y"]), ("yaml", &["*.yaml", "*...
1
1
0
147e96914c5e0dfa9d626d928be4d9c65869b2a0
Steffen Banhardt
2019-01-31T14:06:19
ignore/types: *.dtx and *.ins added for tex PR #1182
diff --git a/ignore/src/types.rs b/ignore/src/types.rs index d7a1fc7..7272611 100644 --- a/ignore/src/types.rs +++ b/ignore/src/types.rs @@ -283,7 +283,7 @@ const DEFAULT_TYPES: &'static [(&'static str, &'static [&'static str])] = &[ ]), ("taskpaper", &["*.taskpaper"]), ("tcl", &["*.tcl"]), - ("tex", ...
1
1
1
f768796e4fd8a2734dbb9af87d16610fc6a671a4
Andrew Gallant
2019-01-29T18:08:56
deps: update other deps
diff --git a/Cargo.lock b/Cargo.lock index a8d42d1..cb0a462 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -13,7 +13,7 @@ name = "atty" version = "0.2.11" source = "registry+https://github.com/rust-lang/crates.io-index" dependencies = [ - "libc 0.2.47 (registry+https://github.com/rust-lang/crates.io-index)", + "libc 0....
1
83
72
da0c0c470587a44106493cdba177a3409cf01eed
Andrew Gallant
2019-01-29T18:07:37
deps: update to crossbeam-channel 0.3.8 This drops dependencies on parking_lot and rand from ripgrep. (rand is still used for tests.)
diff --git a/Cargo.lock b/Cargo.lock index cc2b932..a8d42d1 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -77,21 +77,20 @@ dependencies = [ [[package]] name = "crossbeam-channel" -version = "0.3.6" +version = "0.3.8" source = "registry+https://github.com/rust-lang/crates.io-index" dependencies = [ - "crossbeam-util...
1
7
62
05411b2b322692f0052f0c5b2eefcbb14883f338
Andrew Gallant
2019-01-29T18:05:16
deprecated: remove use of ATOMIC_BOOL_INIT Our MSRV is high enough that we can use const functions now.
diff --git a/src/messages.rs b/src/messages.rs index 9d134a1..dc013e1 100644 --- a/src/messages.rs +++ b/src/messages.rs @@ -1,8 +1,8 @@ -use std::sync::atomic::{ATOMIC_BOOL_INIT, AtomicBool, Ordering}; +use std::sync::atomic::{AtomicBool, Ordering}; -static MESSAGES: AtomicBool = ATOMIC_BOOL_INIT; -static IGNORE_MES...
1
4
4
cc93db3b1899fb4ad894472af5b88424ce0bb75a
Andrew Gallant
2019-01-29T18:04:40
cargo: include auto-generated message This is going to be annoying for a while if one switches between the latest nightly compiler and older compilers. Sigh.
diff --git a/Cargo.lock b/Cargo.lock index 50bf552..cc2b932 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1,3 +1,5 @@ +# This file is automatically @generated by Cargo. +# It is not intended for manual editing. [[package]] name = "aho-corasick" version = "0.6.9"
1
2
0
f158a42a715fb6470aa2924182cbf8e1e0fd9448
Andrew Gallant
2019-01-27T15:45:09
ignore: correctly detect hidden files on Windows This commit fixes a bug where ripgrep only treated files beginning with a `.` as hidden. On Windows, we continue this tradition, but additionally check whether a file has the special Windows "hidden" attribute set. If so, we treat it as a hidden file. In order to make ...
diff --git a/Cargo.lock b/Cargo.lock index 22c48e2..50bf552 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -170,7 +170,7 @@ dependencies = [ "regex 1.1.0 (registry+https://github.com/rust-lang/crates.io-index)", "same-file 1.0.4 (registry+https://github.com/rust-lang/crates.io-index)", "termcolor 1.0.4 (registry+htt...
5
83
41
afb89bcdadf85d9c721739d004552ed3c8a9afa0
Andrew Gallant
2019-01-26T18:45:02
fmt: shorten --ignore-file-case-insensitive description
diff --git a/src/app.rs b/src/app.rs index 989e6dc..59fd6f2 100644 --- a/src/app.rs +++ b/src/app.rs @@ -1212,8 +1212,7 @@ directly on the command line, then used -g instead. } fn flag_ignore_file_case_insensitive(args: &mut Vec<RGArg>) { - const SHORT: &str = - "Process ignore files (.gitignore, .ignore,...
1
1
2
9d703110cfe01782d2d0b03a340f5983da215e68
Andrew Gallant
2019-01-26T17:25:21
regex: make CRLF hack more robust This commit improves the CRLF hack to be more robust. In particular, in addition to rewriting `$` as `(?:\r??$)`, we now strip `\r` from the end of a match if and only if the regex has an ending line anchor required for a match. This doesn't quite make the hack 100% correct, but shoul...
diff --git a/grep-printer/src/json.rs b/grep-printer/src/json.rs index 45d6d68..50387bf 100644 --- a/grep-printer/src/json.rs +++ b/grep-printer/src/json.rs @@ -817,7 +817,8 @@ impl<'a> SubMatches<'a> { #[cfg(test)] mod tests { - use grep_regex::RegexMatcher; + use grep_regex::{RegexMatcher, RegexMatcherBuild...
7
267
18
e99b6bda0ef469ddeb65fb2f39e0c47b64c20bda
Andrew Gallant
2019-01-26T17:20:02
deps: bump regex-syntax to 0.6.5 This is necessary for the use of the new is_line_anchored_{start,end} APIs.
diff --git a/Cargo.lock b/Cargo.lock index 9af1a04..22c48e2 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -210,7 +210,7 @@ dependencies = [ "grep-matcher 0.1.1", "log 0.4.6 (registry+https://github.com/rust-lang/crates.io-index)", "regex 1.1.0 (registry+https://github.com/rust-lang/crates.io-index)", - "regex-synta...
1
4
4
276e2c9b9ab3dac7643033d8b9d6c272d5dac1d5
Andrew Gallant
2019-01-25T22:18:57
searcher: always strip BOM This fixes a bug where a BOM prefix was included. While this was somewhat intentional in order to have a faithful "UTF8 passthru" option, in practice, this causes problems such as breaking patterns like `^` in a really non-obvious way. The actual fix was to add a new API to encoding_rs_io, ...
diff --git a/Cargo.lock b/Cargo.lock index 6e479b1..9af1a04 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -103,7 +103,7 @@ dependencies = [ [[package]] name = "encoding_rs_io" -version = "0.1.3" +version = "0.1.4" source = "registry+https://github.com/rust-lang/crates.io-index" dependencies = [ "encoding_rs 0.8.1...
4
14
4
47833b9ce740529ebff7d99a6e156be60b277c5d
Andrew Gallant
2019-01-24T01:14:37
deps: update removal of grep devdeps
diff --git a/Cargo.lock b/Cargo.lock index 8f8965d..6e479b1 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -149,15 +149,12 @@ dependencies = [ name = "grep" version = "0.2.3" dependencies = [ - "atty 0.2.11 (registry+https://github.com/rust-lang/crates.io-index)", - "clap 2.32.0 (registry+https://github.com/rust-lang/c...
1
0
3
44a9e377371006f01f2e425fbf8d49e43bc14a9b
Awad Mackie
2018-11-25T21:17:18
ignore/types: add method for retrieving file type definition Fixes #1116, Closes #1120
diff --git a/ignore/src/types.rs b/ignore/src/types.rs index 74c27c4..d7a1fc7 100644 --- a/ignore/src/types.rs +++ b/ignore/src/types.rs @@ -350,6 +350,18 @@ impl<'a> Glob<'a> { fn unmatched() -> Glob<'a> { Glob(GlobInner::UnmatchedIgnore) } + + /// Return the file type defintion that matched, if ...
1
12
0
4691d1103417a68905f0fa77adb1a6988c808fdc
Rob Lourens
2019-01-24T01:04:44
ripgrep: don't skip stdout in --files mode Specifically, this avoids triggering Windows antimalware when in --files mode. See also #600. Fixes #1121
diff --git a/src/args.rs b/src/args.rs index df55df2..914a2a7 100644 --- a/src/args.rs +++ b/src/args.rs @@ -786,7 +786,7 @@ impl ArgMatches { .max_filesize(self.max_file_size()?) .threads(self.threads()?) .same_file_system(self.is_present("one-file-system")) - .skip_st...
1
1
1
519a6b68af2339afadaa32a8649efabbb0b9266a
Andrew Gallant
2019-01-24T01:01:32
grep: remove unused dependencies We remove these for now, but we'll eventually add them back once the examples get more fleshed out. Closes #1043
diff --git a/grep/Cargo.toml b/grep/Cargo.toml index 92222cd..b6a97d2 100644 --- a/grep/Cargo.toml +++ b/grep/Cargo.toml @@ -21,16 +21,9 @@ grep-regex = { version = "0.1.1", path = "../grep-regex" } grep-searcher = { version = "0.1.1", path = "../grep-searcher" } [dev-dependencies] -atty = "0.2.11" -regex = "1.1" ...
1
0
7
aeaa5fc1b13bd5b903ef5660d3a6cb26b6745945
Andrew Gallant
2019-01-24T00:15:02
globset: fix repeated use of ** This fixes a bug where repeated use of ** didn't behave as it should. In particular, each use of `**` added a new requirement directory depth requirement. For example, something like `**/**/b` would match `foo/bar/b`, but it wouldn't match `foo/b` even though it should. In particular, `...
diff --git a/globset/src/glob.rs b/globset/src/glob.rs index cbbc7ba..53d44e1 100644 --- a/globset/src/glob.rs +++ b/globset/src/glob.rs @@ -850,27 +850,44 @@ impl<'a> Parser<'a> { } return Ok(()); } - self.pop_token()?; + if !prev.map(is_separator).unwrap_or(false) { ...
3
55
13
23be3cf850386ec0d4d8724fb9bf5ddeaab2c27d
Andrew Gallant
2019-01-23T23:12:35
ignore: fix handling of ** When deciding whether to add the `**/` prefix or not, we should choose not to add it if the pattern is simply a bare `**`. Previously, we were only not adding it if it was `**/`, which is correct, but we also need to do it for `**` since `**` can already match anywhere. There's likely a mor...
diff --git a/ignore/src/gitignore.rs b/ignore/src/gitignore.rs index 1a44e62..48d1bb4 100644 --- a/ignore/src/gitignore.rs +++ b/ignore/src/gitignore.rs @@ -69,8 +69,7 @@ impl Glob { /// Returns true if and only if this glob has a `**/` prefix. fn has_doublestar_prefix(&self) -> bool { - self.actual....
2
10
2
8eabe47b571d42992908e8ba17c525e6b58432d7
dana
2019-01-23T22:54:28
ignore: always use literal_separator for gitignore patterns (#1093) PR #1093
diff --git a/ignore/src/gitignore.rs b/ignore/src/gitignore.rs index 66f98df..1a44e62 100644 --- a/ignore/src/gitignore.rs +++ b/ignore/src/gitignore.rs @@ -458,7 +458,6 @@ impl GitignoreBuilder { is_whitelist: false, is_only_dir: false, }; - let mut literal_separator = false; ...
1
7
12
1ae121122f670e95dc6b5a006c5d2a25cbc7eaa2
dana
2018-11-03T20:47:39
ignore/types: add/update brotli, bzip2, gzip, xz, zstd
diff --git a/ignore/src/types.rs b/ignore/src/types.rs index e59044e..74c27c4 100644 --- a/ignore/src/types.rs +++ b/ignore/src/types.rs @@ -108,8 +108,9 @@ const DEFAULT_TYPES: &'static [(&'static str, &'static [&'static str])] = &[ ("awk", &["*.awk"]), ("bazel", &["*.bzl", "WORKSPACE", "BUILD", "BUILD.bazel...
1
5
3
7cbc535d70a53c81dfa3e58552c01f21c2e38d28
Andrew Gallant
2019-01-19T15:46:57
edition: fix build.rs
diff --git a/build.rs b/build.rs index 7f92f3c..43f667c 100644 --- a/build.rs +++ b/build.rs @@ -1,8 +1,3 @@ -#[macro_use] -extern crate clap; -#[macro_use] -extern crate lazy_static; - use std::env; use std::fs::{self, File}; use std::io::{self, Read, Write};
1
0
5
7a6a40bae18f89bcfc6997479d7202d2c098e964
Andrew Gallant
2019-01-19T15:15:56
edition: move core ripgrep to Rust 2018
diff --git a/Cargo.toml b/Cargo.toml index 9d7e42d..d28758f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -17,6 +17,7 @@ license = "Unlicense OR MIT" exclude = ["HomebrewFormula"] build = "build.rs" autotests = false +edition = "2018" [badges] travis-ci = { repository = "BurntSushi/ripgrep" } diff --git a/src/app....
15
40
48
1e9ee2cc85da6f18b72ea554010810c317c31031
Andrew Gallant
2019-01-19T14:55:24
deps: update memmap
diff --git a/Cargo.lock b/Cargo.lock index 854448b..8f8965d 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -229,7 +229,7 @@ dependencies = [ "grep-regex 0.1.1", "log 0.4.6 (registry+https://github.com/rust-lang/crates.io-index)", "memchr 2.1.3 (registry+https://github.com/rust-lang/crates.io-index)", - "memmap 0.6.2...
2
4
4
968491f8e93e506b224ee4c85bee85f7ead0e5d5
Andrew Gallant
2019-01-19T14:52:10
deps: update to bytecount 0.5 bytecount now uses runtime dispatch for enabling SIMD, which means we can no longer need the avx-accel features. We remove it from ripgrep since the next release will be a minor version bump, but leave them as no-ops for the crates that previously used it.
diff --git a/Cargo.lock b/Cargo.lock index ee8732a..854448b 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -36,11 +36,8 @@ source = "registry+https://github.com/rust-lang/crates.io-index" [[package]] name = "bytecount" -version = "0.3.2" +version = "0.5.0" source = "registry+https://github.com/rust-lang/crates.io-ind...
4
12
16
7ecee299a5a2e0db381b17394d8dab002916ee06
P M
2019-01-18T11:48:47
ignore/types: add QML PR #1165
diff --git a/ignore/src/types.rs b/ignore/src/types.rs index 0085f66..e59044e 100644 --- a/ignore/src/types.rs +++ b/ignore/src/types.rs @@ -233,6 +233,7 @@ const DEFAULT_TYPES: &'static [(&'static str, &'static [&'static str])] = &[ ("purs", &["*.purs"]), ("py", &["*.py"]), ("qmake", &["*.pro", "*.pri",...
1
1
0
fb0a82f3c316efc829151ef8ca14f13a0be6c1bc
Andrew Gallant
2019-01-11T14:18:09
grep-printer: add macro docs, redux
diff --git a/grep-printer/src/macros.rs b/grep-printer/src/macros.rs index 7b48e8c..0b1e764 100644 --- a/grep-printer/src/macros.rs +++ b/grep-printer/src/macros.rs @@ -1,3 +1,4 @@ +/// Like assert_eq, but nicer output for long strings. #[cfg(test)] #[macro_export] macro_rules! assert_eq_printed {
1
1
0
dbc8ca9cc1b9f38e3c59ac7c4efd9f240ae7a95e
Andrew Gallant
2019-01-11T14:03:00
grep-searcher: add docs for assert_eq_printed Looks like the deny(missing_docs) lint got a bit stronger.
diff --git a/grep-searcher/src/macros.rs b/grep-searcher/src/macros.rs index a4af7ea..d8224e4 100644 --- a/grep-searcher/src/macros.rs +++ b/grep-searcher/src/macros.rs @@ -1,3 +1,4 @@ +/// Like assert_eq, but nicer output for long strings. #[cfg(test)] #[macro_export] macro_rules! assert_eq_printed {
1
1
0
c3db8db93d048be6e4bc62c2d5bdf0e2fee65950
Marco Hinz
2019-01-05T15:18:36
doc: fix typo
diff --git a/src/app.rs b/src/app.rs index 57093fa..8d8cdad 100644 --- a/src/app.rs +++ b/src/app.rs @@ -1016,7 +1016,7 @@ fn flag_files(args: &mut Vec<RGArg>) { const SHORT: &str = "Print each file that would be searched."; const LONG: &str = long!("\ Print each file that would be searched without actually ...
1
1
1
17ef4c40f32af337c1b10c1a9fdd1df4241391b3
Andrew Gallant
2018-12-30T13:46:09
ignore-0.4.6
diff --git a/Cargo.lock b/Cargo.lock index b52cd63..4841630 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -256,7 +256,7 @@ dependencies = [ [[package]] name = "ignore" -version = "0.4.5" +version = "0.4.6" dependencies = [ "crossbeam-channel 0.3.3 (registry+https://github.com/rust-lang/crates.io-index)", "globse...
2
3
4
a9e0477ea85a0bbe9ddeac609f7e48a8cc628fa3
Andrew Gallant
2018-12-30T13:44:59
ignore: permit use of deprecated trim_right
diff --git a/ignore/src/gitignore.rs b/ignore/src/gitignore.rs index 15827fd..a151e2d 100644 --- a/ignore/src/gitignore.rs +++ b/ignore/src/gitignore.rs @@ -419,6 +419,8 @@ impl GitignoreBuilder { from: Option<PathBuf>, mut line: &str, ) -> Result<&mut GitignoreBuilder, Error> { + #![allow...
1
2
0
b3c5773266faf435faa970e5545f057aad09aaee
Andrew Gallant
2018-12-30T13:43:18
deps: bump ignore
diff --git a/Cargo.lock b/Cargo.lock index 7ec4d40..b52cd63 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -256,7 +256,7 @@ dependencies = [ [[package]] name = "ignore" -version = "0.4.4" +version = "0.4.5" dependencies = [ "crossbeam-channel 0.3.3 (registry+https://github.com/rust-lang/crates.io-index)", "globse...
1
2
2
118b950085ff674c1c7142bc5e171dd2b4688934
Andrew Gallant
2018-12-15T13:44:10
ignore-0.4.5
diff --git a/ignore/Cargo.toml b/ignore/Cargo.toml index f2c8cf4..d812963 100644 --- a/ignore/Cargo.toml +++ b/ignore/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "ignore" -version = "0.4.4" #:version +version = "0.4.5" #:version authors = ["Andrew Gallant <jamslam@gmail.com>"] description = """ A fast library fo...
1
1
1
b45b2f58eaaf866207121da101166cb90d47d95c
Andrew Gallant
2018-12-15T13:42:14
deps: update most other dependencies This commit is the result of doing: $ cargo update $ cargo update -p encoding_rs --precise 0.8.10 where the latter line prevents encoding_rs from updating to 0.8.11 (or newer). In particular, the 0.8.11 release increased the minimum Rust version to 1.29, where as ripgrep 0.10...
diff --git a/Cargo.lock b/Cargo.lock index ee073bc..7ec4d40 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1,17 +1,17 @@ [[package]] name = "aho-corasick" -version = "0.6.8" +version = "0.6.9" source = "registry+https://github.com/rust-lang/crates.io-index" dependencies = [ - "memchr 2.0.2 (registry+https://github.co...
1
151
152
662a9bc73dc01c529de93c991584035bbba38549
Andrew Gallant
2018-12-15T13:37:52
deps: update to crossbeam-channel 0.3 This also requires corresponding updates to both rand and rand_core. Doing an update of rand without doing an update of rand_core results in compilation errors because two distinct versions of rand_core are included in the build, and the traits they expose are distinct and incompa...
diff --git a/Cargo.lock b/Cargo.lock index 554fcbd..ee073bc 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -82,24 +82,24 @@ dependencies = [ [[package]] name = "crossbeam-channel" -version = "0.2.4" +version = "0.3.3" source = "registry+https://github.com/rust-lang/crates.io-index" dependencies = [ - "crossbeam-epoc...
6
163
80
401add0a9964ff0b154171553ce6d80934461ca0
Andrew Gallant
2018-12-09T21:33:37
deps: update regex and regex-syntax This brings in some new Unicode properties, such as \p{Emoji}. It is now also technically possible construct a regex that recognizes grapheme clusters.
diff --git a/Cargo.lock b/Cargo.lock index 7c92879..554fcbd 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -160,7 +160,7 @@ dependencies = [ "glob 0.2.11 (registry+https://github.com/rust-lang/crates.io-index)", "log 0.4.5 (registry+https://github.com/rust-lang/crates.io-index)", "memchr 2.0.2 (registry+https://gith...
1
14
14
f81b72721bcf73fa8c51aa4153d90884e7a0659f
Simon Morgan
2018-12-07T21:19:33
ignore/types: add ASP PR #1134
diff --git a/ignore/src/types.rs b/ignore/src/types.rs index 6ec452a..0085f66 100644 --- a/ignore/src/types.rs +++ b/ignore/src/types.rs @@ -103,6 +103,7 @@ const DEFAULT_TYPES: &'static [(&'static str, &'static [&'static str])] = &[ ("amake", &["*.mk", "*.bp"]), ("asciidoc", &["*.adoc", "*.asc", "*.asciidoc"...
1
1
0
1d4fccaadc0c5ec805202ff7d451f934fe696ca8
Antony Lee
2018-11-23T14:46:11
ignore/types: add postscript Although postscript/encapsulated postscript is usually thought of as a binary format, it's actually mostly ASCII, so ripgrep will not ignore these files. The situation is basically the same as for pdf, which is also already present in the list of known filetypes. PR #1118
diff --git a/ignore/src/types.rs b/ignore/src/types.rs index 2f0da38..6ec452a 100644 --- a/ignore/src/types.rs +++ b/ignore/src/types.rs @@ -225,6 +225,7 @@ const DEFAULT_TYPES: &'static [(&'static str, &'static [&'static str])] = &[ ("pdf", &["*.pdf"]), ("php", &["*.php", "*.php3", "*.php4", "*.php5", "*.pht...
1
1
0
09e464e67493138fcf598212fe7972518329fe60
Matteo Bertini
2018-11-19T12:37:00
ignore/types: add more Cython file types From the [Cython file types](https://cython.readthedocs.io/en/latest/src/userguide/language_basics.html?highlight=pxi#cython-file-types) paragraph on the official docs: > There are three file types in Cython: > The implementation files, carrying a .py or .pyx suffix. > ...
diff --git a/ignore/src/types.rs b/ignore/src/types.rs index 8cd044e..2f0da38 100644 --- a/ignore/src/types.rs +++ b/ignore/src/types.rs @@ -128,7 +128,7 @@ const DEFAULT_TYPES: &'static [(&'static str, &'static [&'static str])] = &[ ("cshtml", &["*.cshtml"]), ("css", &["*.css", "*.scss"]), ("csv", &["*....
1
1
1
31adff6f3c4bfefc9e77df40871f2989443e6827
Jon Parise
2018-11-07T12:42:13
ignore/types: add Apache Thrift PR #1102
diff --git a/ignore/src/types.rs b/ignore/src/types.rs index 0efa052..8cd044e 100644 --- a/ignore/src/types.rs +++ b/ignore/src/types.rs @@ -281,6 +281,7 @@ const DEFAULT_TYPES: &'static [(&'static str, &'static [&'static str])] = &[ ("tcl", &["*.tcl"]), ("tex", &["*.tex", "*.ltx", "*.cls", "*.sty", "*.bib"])...
1
1
0
b41e5963279d5a7c633514d4a6afcb480c6c6915
Andrew Gallant
2018-11-06T11:57:16
doc: escape braces in AsciiDoc This commit fixes a bug where AsciiDoc would drop any line containing a '{foo}' because it interpreted it as an undefined attribute reference: > Simple attribute references take the form {<name>}. If the attribute name > is defined its text value is substituted otherwise the line contai...
diff --git a/build.rs b/build.rs index b7f26f1..7f92f3c 100644 --- a/build.rs +++ b/build.rs @@ -168,7 +168,12 @@ fn formatted_arg(arg: &RGArg) -> io::Result<String> { } fn formatted_doc_txt(arg: &RGArg) -> io::Result<String> { - let paragraphs: Vec<&str> = arg.doc_long.split("\n\n").collect(); + let paragrap...
2
11
6
fb622666206089cf7092ae116612898ac358c91c
Andrew Gallant
2018-10-22T10:50:35
deps: update encoding_rs This commit bumps the version of encoding_rs to use the latest release. This appears to fix a panic in UTF-16 decoding. Fixes #1089
diff --git a/Cargo.lock b/Cargo.lock index a4cb20f..7c92879 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -43,7 +43,7 @@ name = "bytecount" version = "0.3.2" source = "registry+https://github.com/rust-lang/crates.io-index" dependencies = [ - "simd 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)", + "simd...
2
9
9
acf226c39d79264256c0295b8381f8c7f0d74d59
Dave Lee
2018-10-02T22:00:04
ignore/types: add BUILD.bazel to bazel file type PR #1074
diff --git a/ignore/src/types.rs b/ignore/src/types.rs index 2d6a038..0efa052 100644 --- a/ignore/src/types.rs +++ b/ignore/src/types.rs @@ -105,7 +105,7 @@ const DEFAULT_TYPES: &'static [(&'static str, &'static [&'static str])] = &[ ("asm", &["*.asm", "*.s", "*.S"]), ("avro", &["*.avdl", "*.avpr", "*.avsc"])...
1
1
1
8299625e48c34758289bd1d12dd90289f782002e
Mathieu Bridon
2018-09-28T12:32:24
ignore/types: add buildstream BuildStream is a Free Software tool for building/integrating software stacks.: https://buildstream.gitlab.io/buildstream/ It uses recipes written in YAML, in files with the `.bst` extension. PR #1071
diff --git a/ignore/src/types.rs b/ignore/src/types.rs index 3c651ab..2d6a038 100644 --- a/ignore/src/types.rs +++ b/ignore/src/types.rs @@ -107,6 +107,7 @@ const DEFAULT_TYPES: &'static [(&'static str, &'static [&'static str])] = &[ ("awk", &["*.awk"]), ("bazel", &["*.bzl", "WORKSPACE", "BUILD"]), ("bit...
1
1
0
db256c87ebd52ccab144db5e1bb35f2c1be8f6d5
Andrew Gallant
2018-09-25T00:58:17
ripgrep: suggest -U/--multiline When a "\n literal is not allowed" error is reported, ripgrep will now suggest the use of the -U/--multiline flag, which enables matching newlines. Fixes #1055
diff --git a/src/args.rs b/src/args.rs index 7aed914..623a230 100644 --- a/src/args.rs +++ b/src/args.rs @@ -615,7 +615,10 @@ impl ArgMatches { if let Some(limit) = self.dfa_size_limit()? { builder.dfa_size_limit(limit); } - Ok(builder.build(&patterns.join("|"))?) + match bu...
1
15
1
ba533f390edbad39a334c3fb8b56f839642292ee
Andrew Gallant
2018-09-25T00:51:43
grep-searcher: update to encoding_rs_io 0.1.3 This update includes a work-around for a presumed bug in encoding_rs that causes a panic: https://github.com/hsivonen/encoding_rs/issues/34 Specifically, to reproduce this in ripgrep, one can run the following: $ curl -LO https://cache.ruby-lang.org/pub/ruby/2.5/ruby...
diff --git a/Cargo.lock b/Cargo.lock index 341288a..a4cb20f 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -121,7 +121,7 @@ dependencies = [ [[package]] name = "encoding_rs_io" -version = "0.1.2" +version = "0.1.3" source = "registry+https://github.com/rust-lang/crates.io-index" dependencies = [ "encoding_rs 0.8.6...
2
4
4
ba503eb6775f0031c684a3bfeeb1c9cb07601dd6
Andrew Gallant
2018-09-24T23:24:33
grep-regex: fix inner literal detection It seems the inner literal detector fails spectacularly in cases of concatenations that involve groups. The issue here is that if the prefix of a group inside a concatenation can match the empty string, then any literals generated to that point in the concatenation need to be cu...
diff --git a/grep-regex/src/literal.rs b/grep-regex/src/literal.rs index c3960ae..b8a0c1d 100644 --- a/grep-regex/src/literal.rs +++ b/grep-regex/src/literal.rs @@ -166,10 +166,10 @@ fn union_required(expr: &Hir, lits: &mut Literals) { lits.cut(); continue; } -...
2
30
2
184ee4c3289cdb6574f1e041d0f295e97e491bc0
ykgmfq
2018-09-13T12:17:24
deb: add section info Put it in the same section as https://packages.debian.org/stretch/grep PR #1051
diff --git a/Cargo.toml b/Cargo.toml index bf11a12..803aaf5 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -81,6 +81,7 @@ debug = 1 [package.metadata.deb] features = ["pcre2"] +section = "utils" assets = [ ["target/release/rg", "usr/bin/", "755"], ["COPYING", "usr/share/doc/ripgrep/", "644"],
1
1
0
e82fbf2c462bfdc6a981877a6bc0aa51ec2c463b
Gabe Berke-Williams
2018-09-10T10:49:48
doc: fix typo "cretion" -> "creation" PR #1045
diff --git a/src/app.rs b/src/app.rs index 0323927..6b39f8f 100644 --- a/src/app.rs +++ b/src/app.rs @@ -2067,7 +2067,7 @@ for this flag are: path Sort by file path. modified Sort by the last modified time on a file. accessed Sort by the last accessed time on a file. - created Sort by...
1
2
2
eb18da04506b959c0251099eae83e16d22ce8bcb
Andrew Gallant
2018-09-08T21:12:14
pcre2: use jit_if_available This will allow PCRE2 to fall back to non-JIT matching when running on platforms without JIT support. ref https://github.com/BurntSushi/rust-pcre2/issues/3
diff --git a/Cargo.lock b/Cargo.lock index cc5a089..341288a 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -165,13 +165,13 @@ dependencies = [ [[package]] name = "grep" -version = "0.2.2" +version = "0.2.3" dependencies = [ "atty 0.2.11 (registry+https://github.com/rust-lang/crates.io-index)", "clap 2.32.0 (regis...
6
34
17
d14f0b37d651b276fcd6a6938b0da918b17f3326
Andrew Gallant
2018-09-07T17:14:31
deps: update versions for all crates I don't think every change here is needed, but this ensures we're using the latest version of every direct dependency.
diff --git a/Cargo.lock b/Cargo.lock index 30a84c0..cc5a089 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -153,7 +153,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" [[package]] name = "globset" -version = "0.4.1" +version = "0.4.2" dependencies = [ "aho-corasick 0.6.8 (registry+https://githu...
11
101
101
3ddc3c040f7a0a6896738fc1d6dbe57fd75566b4
Andrew Gallant
2018-09-07T17:02:02
deps: minor updates
diff --git a/Cargo.lock b/Cargo.lock index 52465cb..30a84c0 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -53,7 +53,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" [[package]] name = "cc" -version = "1.0.23" +version = "1.0.24" source = "registry+https://github.com/rust-lang/crates.io-index" ...
1
35
35
3797a2a5cb2bd92cb6940d83fa3e61b2b570a473
Andrew Gallant
2018-09-05T15:51:53
simplegrep: touch up
diff --git a/grep/examples/simplegrep.rs b/grep/examples/simplegrep.rs index d4bdef4..85e2f77 100644 --- a/grep/examples/simplegrep.rs +++ b/grep/examples/simplegrep.rs @@ -3,10 +3,9 @@ extern crate termcolor; extern crate walkdir; use std::env; +use std::error::Error; use std::ffi::OsString; -use std::path::Path;...
1
12
27
0e2f8f7b47269ee5572da09c65186177992f8409
Andrew Gallant
2018-09-07T16:02:22
grep: add clap and regex dev dependencies to grep These are (or will be) used in grep's examples.
diff --git a/Cargo.lock b/Cargo.lock index 030f2a1..52465cb 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -168,12 +168,14 @@ name = "grep" version = "0.2.1" dependencies = [ "atty 0.2.11 (registry+https://github.com/rust-lang/crates.io-index)", + "clap 2.32.0 (registry+https://github.com/rust-lang/crates.io-index)", ...
2
8
0
3dd4b77dfb677a7dec3b1806943da0dbf416db92
Andrew Gallant
2018-09-07T16:01:26
grep-searcher: add Box<...> impl for Sink 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 ...
diff --git a/grep-searcher/src/sink.rs b/grep-searcher/src/sink.rs index 2ed1e6c..bf2316f 100644 --- a/grep-searcher/src/sink.rs +++ b/grep-searcher/src/sink.rs @@ -246,6 +246,53 @@ impl<'a, S: Sink> Sink for &'a mut S { } } +impl<S: Sink + ?Sized> Sink for Box<S> { + type Error = S::Error; + + #[inline] ...
1
47
0
3b5cdea862e3c4d6346bbef2449523e8c3790b4e
Andrew Gallant
2018-09-07T15:57:47
doc: minor touchups to API docs
diff --git a/grep-printer/src/standard.rs b/grep-printer/src/standard.rs index 6c8976b..6ead1db 100644 --- a/grep-printer/src/standard.rs +++ b/grep-printer/src/standard.rs @@ -239,8 +239,9 @@ impl StandardBuilder { /// which may either be in index form (e.g., `$2`) or can reference named /// capturing groups...
2
12
4
54b3e9eb10bebb33de799bc14616a0d72165583a
Andrew Gallant
2018-09-07T15:57:07
grep-printer: delete unused code
diff --git a/grep-printer/src/jsont.rs b/grep-printer/src/jsont.rs index 5028349..f98dabb 100644 --- a/grep-printer/src/jsont.rs +++ b/grep-printer/src/jsont.rs @@ -114,39 +114,6 @@ impl<'a> Data<'a> { // so we do the easy thing for now. Data::Text { text: path.to_string_lossy() } } - - // Unu...
2
0
69
56e8864426229de7b181c141baddf788c22b4925
Andrew Gallant
2018-09-07T15:56:30
grep-matcher: add LineTerminator::is_suffix This centralizes the logic for checking whether a line has a line terminator or not.
diff --git a/grep-matcher/src/lib.rs b/grep-matcher/src/lib.rs index 49d6358..9a067ef 100644 --- a/grep-matcher/src/lib.rs +++ b/grep-matcher/src/lib.rs @@ -266,6 +266,16 @@ impl LineTerminator { LineTerminatorImp::CRLF => &[b'\r', b'\n'], } } + + /// Returns true if and only if the given ...
2
11
1
83dff33326da6c417657c0f1f2458124f3bede10
Andrew Gallant
2018-09-05T03:29:22
deps: update various deps
diff --git a/Cargo.lock b/Cargo.lock index f756e23..030f2a1 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -158,7 +158,7 @@ dependencies = [ "aho-corasick 0.6.8 (registry+https://github.com/rust-lang/crates.io-index)", "fnv 1.0.6 (registry+https://github.com/rust-lang/crates.io-index)", "glob 0.2.11 (registry+https:...
1
22
22
003c3695f41ac204208ba2ff797b0d01d55697a6
Andrew Gallant
2018-09-05T03:29:05
deps: update grep version
diff --git a/Cargo.lock b/Cargo.lock index b1ee172..f756e23 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -165,7 +165,7 @@ dependencies = [ [[package]] name = "grep" -version = "0.2.0" +version = "0.2.1" dependencies = [ "atty 0.2.11 (registry+https://github.com/rust-lang/crates.io-index)", "grep-cli 0.1.0", @@ ...
2
3
3
10777c150dc2c2fc43a4089ae337ffb7b72fa1e6
Andrew Gallant
2018-09-05T03:25:39
grep-0.2.1
diff --git a/grep/Cargo.toml b/grep/Cargo.toml index 64ae227..c8027ff 100644 --- a/grep/Cargo.toml +++ b/grep/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "grep" -version = "0.2.0" #:version +version = "0.2.1" #:version authors = ["Andrew Gallant <jamslam@gmail.com>"] description = """ Fast line oriented regex se...
1
1
1
fd22cd520bf7c76b53ec0001dff5bf898ce92c75
Andrew Gallant
2018-09-05T02:54:13
windows: fix unused warnings on Windows
diff --git a/grep-cli/src/pattern.rs b/grep-cli/src/pattern.rs index ed1d95a..dbdb1d8 100644 --- a/grep-cli/src/pattern.rs +++ b/grep-cli/src/pattern.rs @@ -183,7 +183,7 @@ pub fn patterns_from_reader<R: io::Read>(rdr: R) -> io::Result<Vec<String>> { #[cfg(test)] mod tests { - use super::{pattern_from_bytes, pat...
2
4
2
13c47530a6e685d2dee1953a64f055936e6a2ba8
helloer
2018-09-03T11:25:07
ignore/types: add pascal type PR #1036
diff --git a/ignore/src/types.rs b/ignore/src/types.rs index b8c78bb..3c651ab 100644 --- a/ignore/src/types.rs +++ b/ignore/src/types.rs @@ -219,6 +219,7 @@ const DEFAULT_TYPES: &'static [(&'static str, &'static [&'static str])] = &[ ("objcpp", &["*.h", "*.mm"]), ("ocaml", &["*.ml", "*.mli", "*.mll", "*.mly"]...
1
1
0
04518e32e7470b78283c7ebaf6a292b54cbf93f9
Andrew Gallant
2018-08-31T03:03:07
deps: update other crates
diff --git a/Cargo.lock b/Cargo.lock index f883d37..7ddb3f2 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1,6 +1,6 @@ [[package]] name = "aho-corasick" -version = "0.6.7" +version = "0.6.8" source = "registry+https://github.com/rust-lang/crates.io-index" dependencies = [ "memchr 2.0.2 (registry+https://github.com/...
1
24
24
f2eaf5b97767dfb22bf3e7f793b2dbdc457bf070
Andrew Gallant
2018-08-31T02:57:01
deps: update termcolor for perf tweaks
diff --git a/Cargo.lock b/Cargo.lock index 9db8b88..f883d37 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -173,7 +173,7 @@ dependencies = [ "grep-printer 0.1.0", "grep-regex 0.1.0", "grep-searcher 0.1.0", - "termcolor 1.0.2 (registry+https://github.com/rust-lang/crates.io-index)", + "termcolor 1.0.3 (registry+https...
1
5
5
d18839f3dcf7d599dc96f8ee36627d7b97d234b8
Aaron Power
2018-08-28T22:27:34
ignore: add into_path for DirEntry (#1031) This commit adds ignore::DirEntry::into_path to match the corresponding method on walkdir::DirEntry.
diff --git a/ignore/src/walk.rs b/ignore/src/walk.rs index 2f54b53..bded1e1 100644 --- a/ignore/src/walk.rs +++ b/ignore/src/walk.rs @@ -36,6 +36,14 @@ impl DirEntry { self.dent.path() } + /// The full path that this entry represents. + /// Analogous to [`path`], but moves ownership of the path. +...
1
21
0
87b745454d34786029fab9c63402572c5195ac3d
Andrew Gallant
2018-08-28T01:17:58
ripgrep: use 'ignore' for skipping stdout This removes ripgrep-specific code for filtering files that correspond to stdout and instead uses the 'ignore' crate's functionality for doing the same.
diff --git a/src/args.rs b/src/args.rs index 674b2af..de84f09 100644 --- a/src/args.rs +++ b/src/args.rs @@ -308,9 +308,7 @@ impl Args { /// file or a stream such as stdin. pub fn subject_builder(&self) -> SubjectBuilder { let mut builder = SubjectBuilder::new(); - builder - .strip_...
2
2
92
e5bb750995b1367f424f0b6b6a5c4385b7938c2f
Andrew Gallant
2018-08-28T01:16:41
ignore: add 'stdout' skipping to the walker 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 > resul...
diff --git a/ignore/src/walk.rs b/ignore/src/walk.rs index 8feb474..2f54b53 100644 --- a/ignore/src/walk.rs +++ b/ignore/src/walk.rs @@ -455,6 +455,7 @@ pub struct WalkBuilder { same_file_system: bool, sorter: Option<Sorter>, threads: usize, + skip: Option<Arc<Handle>>, } #[derive(Clone)] @@ -472,...
1
110
8
510f15f4da46ca8553f93e9b82346794a6dc7dd9
Andrew Gallant
2018-08-26T02:52:24
ignore: add sort_by_file_path builder method 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 ma...
diff --git a/ignore/src/walk.rs b/ignore/src/walk.rs index 6cbd76d..8feb474 100644 --- a/ignore/src/walk.rs +++ b/ignore/src/walk.rs @@ -453,12 +453,16 @@ pub struct WalkBuilder { max_filesize: Option<u64>, follow_links: bool, same_file_system: bool, - sorter: Option<Arc< - Fn(&OsStr, &OsStr) -...
1
49
10
1b6089674e38aa0fde9810b4d25d79119f1c2400
Andrew Gallant
2018-08-25T22:03:17
deps: more updates
diff --git a/Cargo.lock b/Cargo.lock index a85cc67..ce4c58c 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1,9 +1,9 @@ [[package]] name = "aho-corasick" -version = "0.6.6" +version = "0.6.7" source = "registry+https://github.com/rust-lang/crates.io-index" dependencies = [ - "memchr 2.0.1 (registry+https://github.com/...
1
34
34
05a0389555ab44a2fee13c90395bc05960d388e5
Andrew Gallant
2018-08-25T04:25:45
ripgrep: use winapi-util for stdin_is_readable
diff --git a/Cargo.lock b/Cargo.lock index dcb7edb..a85cc67 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -478,7 +478,7 @@ dependencies = [ "serde_derive 1.0.75 (registry+https://github.com/rust-lang/crates.io-index)", "serde_json 1.0.26 (registry+https://github.com/rust-lang/crates.io-index)", "termcolor 1.0.2 (re...
4
8
17
16353bad6eb626784d238a83731c5b072b922bc7
Andrew Gallant
2018-08-25T04:19:40
deps: update various deps This includes a new crate, winapi-util, that is now used in wincolor, walkdir and same-file.
diff --git a/Cargo.lock b/Cargo.lock index 937722a..dcb7edb 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -53,7 +53,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" [[package]] name = "cc" -version = "1.0.20" +version = "1.0.22" source = "registry+https://github.com/rust-lang/crates.io-index" ...
1
53
42
55ed698a98286b42ae7a79b0762b190c52c8ef38
Andrew Gallant
2018-08-23T13:54:45
deps: update walkdir minimum version We'll want to be using the new `same_file_system` option soon.
diff --git a/grep/Cargo.toml b/grep/Cargo.toml index b9a83ce..3ffaeae 100644 --- a/grep/Cargo.toml +++ b/grep/Cargo.toml @@ -22,7 +22,7 @@ grep-searcher = { version = "0.1.0", path = "../grep-searcher" } [dev-dependencies] atty = "0.2.11" termcolor = "1" -walkdir = "2.2.1" +walkdir = "2.2.2" [features] avx-accel...
2
2
2
f1e025873f2eed114141e69a39dcf92f11b09971
Andrew Gallant
2018-08-23T00:48:35
deps: update dependencies This includes an update to walkdir 2.2.2, which includes a `same_file_system` option.
diff --git a/Cargo.lock b/Cargo.lock index 36db02d..937722a 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -53,7 +53,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" [[package]] name = "cc" -version = "1.0.19" +version = "1.0.20" source = "registry+https://github.com/rust-lang/crates.io-index" ...
1
16
16
033ad2b8e4bca4ee7a9f01e5598e8b9a95b12b29
Andrew Gallant
2018-08-22T03:10:34
deps: update clap Update clap to the latest version. Also, drop the ansi_term dependency by disabling color output in clap's error messages.
diff --git a/Cargo.lock b/Cargo.lock index c64a6ad..36db02d 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -6,14 +6,6 @@ dependencies = [ "memchr 2.0.1 (registry+https://github.com/rust-lang/crates.io-index)", ] -[[package]] -name = "ansi_term" -version = "0.11.0" -source = "registry+https://github.com/rust-lang/crat...
2
4
15
098a8ee843eb4e110549a4b71923ab6a3f227d99
Andrew Gallant
2018-08-22T02:00:31
deps: various patch upgrades
diff --git a/Cargo.lock b/Cargo.lock index 697b26a..c64a6ad 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -43,7 +43,7 @@ dependencies = [ [[package]] name = "bitflags" -version = "1.0.3" +version = "1.0.4" source = "registry+https://github.com/rust-lang/crates.io-index" [[package]] @@ -61,7 +61,7 @@ source = "reg...
1
21
21
74a89be64110a61972169c4a7f0e44ea2a43b4ec
Andrew Gallant
2018-08-22T00:53:21
grep-printer: fix bug in printing truncated lines When emitting color, the printer wasn't checking whether the line exceeded the maximum allowed length.
diff --git a/grep-printer/src/standard.rs b/grep-printer/src/standard.rs index 6146a8b..183fa4b 100644 --- a/grep-printer/src/standard.rs +++ b/grep-printer/src/standard.rs @@ -1201,6 +1201,9 @@ impl<'a, M: Matcher, W: WriteColor> StandardImpl<'a, M, W> { if !self.wtr().borrow().supports_color() || spec.is_non...
1
3
0
5b1ce8bdc2391df82f2e9b4d8cc7b64f46c6c9a2
Andrew Gallant
2018-08-22T00:26:33
tests: touch up tests on Windows This fixes warnings and adds an additional invalid UTF-8 test that will run on Windows.
diff --git a/tests/json.rs b/tests/json.rs index 4433103..7a7bd4d 100644 --- a/tests/json.rs +++ b/tests/json.rs @@ -241,6 +241,49 @@ rgtest!(notutf8, |dir: Dir, mut cmd: TestCommand| { ); }); +rgtest!(notutf8_file, |dir: Dir, mut cmd: TestCommand| { + use std::ffi::OsStr; + + // This test does not work w...
2
45
0
1529ce33414f33eb432f9efadf3e38609ae89429
Andrew Gallant
2018-08-22T00:22:08
ripgrep: remove workaround for std bug This commit undoes a work-around for a bug in Rust's standard library that prevented correct file type detection on Windows in OneDrive directories. We remove the work-around because we are moving to a latest-stable Rust version policy, which has included this fix for a while now...
diff --git a/ignore/src/walk.rs b/ignore/src/walk.rs index 35b0006..8c2c35e 100644 --- a/ignore/src/walk.rs +++ b/ignore/src/walk.rs @@ -216,19 +216,6 @@ impl DirEntryInner { } /// Returns true if and only if this entry points to a directory. - /// - /// This works around a bug in Rust's standard libr...
2
4
102
95a4f15916699a1188f7b27c7eb71f850f404098
Andrew Gallant
2018-08-21T23:59:33
ignore: clarify docs for DirEntry::error Fixes #953
diff --git a/ignore/src/walk.rs b/ignore/src/walk.rs index 09bac17..35b0006 100644 --- a/ignore/src/walk.rs +++ b/ignore/src/walk.rs @@ -84,7 +84,8 @@ impl DirEntry { /// Returns an error, if one exists, associated with processing this entry. /// /// An example of an error is one that occurred while pars...
1
2
1
7eaaa04c6999487b8806e90ba63f04c5cfd9e697
Andrew Gallant
2018-08-20T21:34:40
ripgrep: small cleanups
diff --git a/src/main.rs b/src/main.rs index 33bc84c..0c6d00f 100644 --- a/src/main.rs +++ b/src/main.rs @@ -41,10 +41,10 @@ mod search; mod subject; mod unescape; -pub type Result<T> = ::std::result::Result<T, Box<::std::error::Error>>; +type Result<T> = ::std::result::Result<T, Box<::std::error::Error>>; -pub f...
1
4
4
9df60e164eb81b311db18723643432adf3793dd7
Andrew Gallant
2018-08-20T11:39:43
deps: update other dependencies to latest
diff --git a/Cargo.lock b/Cargo.lock index e0b3899..7368d26 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -19,7 +19,7 @@ name = "atty" version = "0.2.11" source = "registry+https://github.com/rust-lang/crates.io-index" dependencies = [ - "libc 0.2.42 (registry+https://github.com/rust-lang/crates.io-index)", + "libc 0....
1
80
71
afa06c518a2bb255fde2a27ef0d401e28fbb0296
Andrew Gallant
2018-08-20T11:26:56
deps: update libripgrep crate versions This prepares them for an initial 0.1.0 release.
diff --git a/Cargo.lock b/Cargo.lock index d11b160..e0b3899 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -142,18 +142,18 @@ name = "grep" version = "0.2.0" dependencies = [ "atty 0.2.11 (registry+https://github.com/rust-lang/crates.io-index)", - "grep-matcher 0.0.1", - "grep-pcre2 0.0.1", - "grep-printer 0.0.1", - "...
7
35
35
e46aeb34f85ad1d510f28ddd949d7ddc0c03a094
Andy Freeland
2018-08-20T16:34:37
ignore/types: add .mako and .mao for Mako templates I've personally never seen `.mao`, but GitHub includes it in Linguist: https://github.com/github/linguist/blob/4f11062304ae28b09a9b90c4536a92a27e142dcb/lib/linguist/languages.yml#L2702-L2709
diff --git a/ignore/src/types.rs b/ignore/src/types.rs index 889cd09..b8c78bb 100644 --- a/ignore/src/types.rs +++ b/ignore/src/types.rs @@ -203,6 +203,7 @@ const DEFAULT_TYPES: &'static [(&'static str, &'static [&'static str])] = &[ "makefile", "Makefile", "*.mk", "*.mak" ]), + ("mako", &["*....
1
1
0
9ca2d68e94ed1e3c9a027f62c7f33f4f8456ee6a
dana
2018-08-19T17:13:51
ripgrep: fix typos in option descriptions
diff --git a/src/app.rs b/src/app.rs index a0b036d..eb58c73 100644 --- a/src/app.rs +++ b/src/app.rs @@ -1424,7 +1424,7 @@ This flag is generally intended to be used in an alias or your ripgrep config file if you prefer \"dot all\" semantics by default. Note that regardless of whether this flag is used, \"dot all\" s...
1
5
5
deb1de6e1e1e0c2556efac403c110b58a0c83a29
woky
2018-08-14T13:29:27
ignore/types: add *.sbt to scala type Sbt is currently most used Scala build tool which uses *.sbt files, which are basically Scala. PR #1010
diff --git a/ignore/src/types.rs b/ignore/src/types.rs index 78be8bf..889cd09 100644 --- a/ignore/src/types.rs +++ b/ignore/src/types.rs @@ -235,7 +235,7 @@ const DEFAULT_TYPES: &'static [(&'static str, &'static [&'static str])] = &[ ("ruby", &["Gemfile", "*.gemspec", ".irbrc", "Rakefile", "*.rb"]), ("rust", ...
1
1
1
6afdf15d85579bb759f5311d867cf5003064e594
Vanessa McHale
2018-08-07T17:10:19
ignore/types: add Idris, Dhall and ATS And also improve Haskell detection. PR #1007
diff --git a/ignore/src/types.rs b/ignore/src/types.rs index 8ecbb2b..78be8bf 100644 --- a/ignore/src/types.rs +++ b/ignore/src/types.rs @@ -98,6 +98,7 @@ use {Error, Match}; const DEFAULT_TYPES: &'static [(&'static str, &'static [&'static str])] = &[ ("agda", &["*.agda", "*.lagda"]), + ("ats", &["*.ats", "*...
1
5
2
ad9befbc1d3b5c695e7f6b6734ee1b8e683edd41
llogiq
2018-08-06T10:44:16
deps: update bytecount to 0.3.2 PR #1003
diff --git a/Cargo.lock b/Cargo.lock index ea911bb..18a99ce 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -31,7 +31,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" [[package]] name = "bytecount" -version = "0.3.1" +version = "0.3.2" source = "registry+https://github.com/rust-lang/crates.io-inde...
2
4
4
0fdab0ec5eb1f0023f647b2a7b8351110b74612c
Andrew Gallant
2018-08-03T20:12:08
grep-0.1.9
diff --git a/Cargo.lock b/Cargo.lock index c019649..8610071 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -115,7 +115,7 @@ dependencies = [ [[package]] name = "grep" -version = "0.1.8" +version = "0.1.9" dependencies = [ "log 0.4.3 (registry+https://github.com/rust-lang/crates.io-index)", "memchr 2.0.1 (registry...
2
3
3
74ec5b89328edd7f73331a971e37f71938a65328
Andrew Gallant
2018-08-03T20:08:57
deps: update termcolor and encoding_rs_io
diff --git a/Cargo.lock b/Cargo.lock index 01522de..c019649 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -71,7 +71,7 @@ dependencies = [ [[package]] name = "encoding_rs_io" -version = "0.1.0" +version = "0.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" dependencies = [ "encoding_rs 0.8.4 (...
1
6
6
2913fc4cd063f4d869f54497a313aafbf5330346
Andrew Gallant
2018-07-29T14:15:20
tests: reduce reliance on state in tests This commit improves the integration test setup by running tests inside the system's temporary directory instead of within ripgrep's `target` directory. The motivation here is to attempt to reduce the effect of unanticipated state on ripgrep's integration tests, such as the pre...
diff --git a/tests/tests.rs b/tests/tests.rs index e6cc153..2ddab86 100644 --- a/tests/tests.rs +++ b/tests/tests.rs @@ -590,6 +590,7 @@ sherlock!(no_ignore_hidden, "Sherlock", ".", |wd: WorkDir, mut cmd: Command| { }); sherlock!(ignore_git, "Sherlock", ".", |wd: WorkDir, mut cmd: Command| { + wd.create_dir(".gi...
2
22
23
7c412bb2fa343a8d54090ea175c851cd822d8f62
Andrew Gallant
2018-07-29T13:40:38
tests/style: 80 columns, dammit
diff --git a/tests/workdir.rs b/tests/workdir.rs index 99f0bf3..56bd416 100644 --- a/tests/workdir.rs +++ b/tests/workdir.rs @@ -49,7 +49,11 @@ impl WorkDir { /// Try to create a new file with the given name and contents in this /// directory. - pub fn try_create<P: AsRef<Path>>(&self, name: P, contents:...
1
26
6
651a0f1ddfcb3e37647199863d2ce1d1db3c56af
Andrew Gallant
2018-07-29T12:37:24
ignore: fix typo
diff --git a/ignore/src/gitignore.rs b/ignore/src/gitignore.rs index d661c84..15827fd 100644 --- a/ignore/src/gitignore.rs +++ b/ignore/src/gitignore.rs @@ -234,7 +234,7 @@ impl Gitignore { return Match::None; } let mut path = self.strip(path.as_ref()); - assert!(!path.has_root(), ...
1
1
1
45473ba48f0561e970596ac979ba5d0bac92242a
Andrew Gallant
2018-07-29T12:31:04
ignore/style: 80 columns, dammit
diff --git a/ignore/tests/gitignore_matched_path_or_any_parents_tests.rs b/ignore/tests/gitignore_matched_path_or_any_parents_tests.rs index 4de7cf3..28d8e2f 100644 --- a/ignore/tests/gitignore_matched_path_or_any_parents_tests.rs +++ b/ignore/tests/gitignore_matched_path_or_any_parents_tests.rs @@ -1,13 +1,11 @@ exte...
1
53
27
0863c75a5a819dc94754f3465246366ffd5d541f
Andrew Gallant
2018-07-29T12:30:53
ignore: fix bug in matched_path_or_any_parents This method was supposed to panic whenever the given path wasn't under the root of the gitignore patcher. Instead of using assert!, it was using debug_assert!. This actually caused tests to fail when running under release mode, because the debug_assert! wouldn't trip. Fi...
diff --git a/ignore/src/gitignore.rs b/ignore/src/gitignore.rs index 2a3016b..d661c84 100644 --- a/ignore/src/gitignore.rs +++ b/ignore/src/gitignore.rs @@ -220,6 +220,11 @@ impl Gitignore { /// determined by a common suffix of the directory containing this /// gitignore) is stripped. If there is no common su...
1
7
4
d94d99f657b10d40a2f4ec0233d7b05e5c317bc6
Andrew Gallant
2018-07-28T15:05:27
ignore-0.4.3
diff --git a/Cargo.lock b/Cargo.lock index 566b0b1..01522de 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -125,7 +125,7 @@ dependencies = [ [[package]] name = "ignore" -version = "0.4.2" +version = "0.4.3" dependencies = [ "crossbeam 0.3.2 (registry+https://github.com/rust-lang/crates.io-index)", "globset 0.4.1"...
2
3
3