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 |
|---|---|---|---|---|---|---|---|
d2a3b61220dc2d17c92dbb6b073776fd1223af66 | Igor Gnatenko | 2017-11-10T15:23:53 | bump crossbeam to 0.3 | diff --git a/ignore/Cargo.toml b/ignore/Cargo.toml
index bbc96ee..14a07a9 100644
--- a/ignore/Cargo.toml
+++ b/ignore/Cargo.toml
@@ -18,7 +18,7 @@ name = "ignore"
bench = false
[dependencies]
-crossbeam = "0.2"
+crossbeam = "0.3"
globset = { version = "0.2.1", path = "../globset" }
lazy_static = "0.2"
log = "0.3... | 1 | 1 | 1 |
acb57eb4add9d9e6705d4655fd917b49f0233890 | Jesse Claven | 2017-11-08T12:25:55 | Add Protocol Buffer file type. | diff --git a/ignore/src/types.rs b/ignore/src/types.rs
index ac2cb70..3c7f8f1 100644
--- a/ignore/src/types.rs
+++ b/ignore/src/types.rs
@@ -205,6 +205,7 @@ const DEFAULT_TYPES: &'static [(&'static str, &'static [&'static str])] = &[
("pdf", &["*.pdf"]),
("php", &["*.php", "*.php3", "*.php4", "*.php5", "*.pht... | 1 | 1 | 0 |
c794ef2f04038a18579323b5a50bfc9667289e2a | Martin Lindhe | 2017-10-30T12:27:16 | fix some typos | diff --git a/globset/src/glob.rs b/globset/src/glob.rs
index bb7b060..84e3156 100644
--- a/globset/src/glob.rs
+++ b/globset/src/glob.rs
@@ -509,7 +509,7 @@ impl Glob {
Some(&self.tokens[start..])
}
- /// Returns the pattern as a literal if and only if the pattern exclusiely
+ /// Returns the patt... | 5 | 6 | 6 |
8b9eba2147587d5c8a39708fdda6a1a3be032f9e | Brian Campbell | 2017-10-24T02:52:01 | Properly match the rules "**/" and "!**/"
When processing a rule that ends in a slash, we strip it off and set the
`is_only_dir` flag. We then apply the rule that paths that aren't
absolute should be given an implicit `**/` prefix, while avoiding
adding that prefix if it already exists.
However, this means that we m... | diff --git a/ignore/src/gitignore.rs b/ignore/src/gitignore.rs
index 8510955..3f87c94 100644
--- a/ignore/src/gitignore.rs
+++ b/ignore/src/gitignore.rs
@@ -455,7 +455,7 @@ impl GitignoreBuilder {
// anywhere, so use a **/ prefix.
if !is_absolute {
// ... but only if we don't already have... | 1 | 3 | 1 |
c4e194538472de2cd74664a9a016b9c25c0e800b | Andrew Gallant | 2017-10-22T14:33:09 | cargo: bump to 0.7.1 | diff --git a/Cargo.lock b/Cargo.lock
index 9fb75f9..61f7763 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -1,6 +1,6 @@
[root]
name = "ripgrep"
-version = "0.7.0"
+version = "0.7.1"
dependencies = [
"atty 0.2.3 (registry+https://github.com/rust-lang/crates.io-index)",
"bytecount 0.1.7 (registry+https://github.com/r... | 2 | 2 | 2 |
8c8c83a1f8fd83a31484985b4a643f27289a9773 | Andrew Gallant | 2017-10-22T14:28:05 | deps: bump ignore to 0.3.1 | diff --git a/Cargo.lock b/Cargo.lock
index 62b77a2..9fb75f9 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -8,7 +8,7 @@ dependencies = [
"encoding_rs 0.7.1 (registry+https://github.com/rust-lang/crates.io-index)",
"env_logger 0.4.3 (registry+https://github.com/rust-lang/crates.io-index)",
"grep 0.1.7",
- "ignore 0.3... | 3 | 4 | 4 |
5714dbde09ace2080fbea2ef063956a3c2602222 | Andrew Gallant | 2017-10-22T14:26:50 | ignore: partially revert symlink loop check optimization
This optimization wasn't tested too carefully, and it seems to result
in a massive amount of file handles open simultaneously. This is likely
a result of the parallel iterator, where many directories are being
traversed simultaneously.
Fixes #648 | diff --git a/ignore/src/dir.rs b/ignore/src/dir.rs
index 544440d..6de6619 100644
--- a/ignore/src/dir.rs
+++ b/ignore/src/dir.rs
@@ -21,7 +21,6 @@ use std::sync::{Arc, RwLock};
use gitignore::{self, Gitignore, GitignoreBuilder};
use pathutil::{is_hidden, strip_prefix};
use overrides::{self, Override};
-use same_file... | 2 | 4 | 23 |
efa4de8126c33d8e5c093b80a01f96a2813531d2 | Andrew Gallant | 2017-10-22T02:39:14 | cargo: bump to 0.7.0 | diff --git a/Cargo.lock b/Cargo.lock
index e0f78b0..62b77a2 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -1,14 +1,14 @@
[root]
name = "ripgrep"
-version = "0.6.0"
+version = "0.7.0"
dependencies = [
"atty 0.2.3 (registry+https://github.com/rust-lang/crates.io-index)",
"bytecount 0.1.7 (registry+https://github.com... | 5 | 15 | 15 |
1bf9d2925989061313b4181140dba79186df1cba | Andrew Gallant | 2017-10-22T02:29:21 | ignore: be fastidious with file handles
This commit fixes the symlink loop checker in the parallel directory
traverser to open fewer handles at the expense of keeping handles held
open longer.
This roughly matches the corresponding change in walkdir:
https://github.com/BurntSushi/walkdir/commit/5bcc5b87ee08a58a7f2a7e... | diff --git a/ignore/src/dir.rs b/ignore/src/dir.rs
index 95c7184..544440d 100644
--- a/ignore/src/dir.rs
+++ b/ignore/src/dir.rs
@@ -21,6 +21,7 @@ use std::sync::{Arc, RwLock};
use gitignore::{self, Gitignore, GitignoreBuilder};
use pathutil::{is_hidden, strip_prefix};
use overrides::{self, Override};
+use same_file... | 2 | 27 | 6 |
2a14bf22491b01cabe882bfaa116a4aea048047f | Andrew Gallant | 2017-10-22T00:36:51 | printer: fix colors on empty matches
This fixes a bug where a "match" color escape was erroneously emitted
after the new line character. This is because `^` is actually allowed to
match after the end of a trailing new line, which means `^$` matches both
before and after the trailing new line when multiline mode is ena... | diff --git a/src/printer.rs b/src/printer.rs
index 4d7966c..3b23e9b 100644
--- a/src/printer.rs
+++ b/src/printer.rs
@@ -361,8 +361,13 @@ impl<W: WriteColor> Printer<W> {
let mut last_written = 0;
for o in offsets {
self.write(&buf[last_written..o.start]);
- sel... | 2 | 30 | 2 |
08060a210597f9c0697d6e9eb305d23e1b8291a0 | Andrew Gallant | 2017-10-21T23:42:34 | deps: update everything | diff --git a/Cargo.lock b/Cargo.lock
index e853dd0..e0f78b0 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2,19 +2,19 @@
name = "ripgrep"
version = "0.6.0"
dependencies = [
- "atty 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)",
+ "atty 0.2.3 (registry+https://github.com/rust-lang/crates.io-index)",
... | 1 | 61 | 41 |
cd575d99f854110a184c731e1eab3397259a12a7 | Andrew Gallant | 2017-10-21T23:27:04 | ignore: upgrade to walkdir 2
The uninteresting bits of this commit involve mechanical changes for
updates to walkdir 2. The more interesting bits of this commit are the
breaking changes, although none of them should require any significant
change on users of this library. The breaking changes are as follows:
* `DirEn... | diff --git a/Cargo.lock b/Cargo.lock
index f60f311..e853dd0 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -16,7 +16,7 @@ dependencies = [
"memmap 0.5.2 (registry+https://github.com/rust-lang/crates.io-index)",
"num_cpus 1.6.2 (registry+https://github.com/rust-lang/crates.io-index)",
"regex 0.2.2 (registry+https://g... | 6 | 61 | 54 |
1267f01c246974b7e93a4f6dbbea6801d636c128 | Andrew Gallant | 2017-10-21T22:45:39 | deps: upgrade to memchr 2 | diff --git a/Cargo.lock b/Cargo.lock
index 056d11d..f60f311 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -12,7 +12,7 @@ dependencies = [
"lazy_static 0.2.8 (registry+https://github.com/rust-lang/crates.io-index)",
"libc 0.2.29 (registry+https://github.com/rust-lang/crates.io-index)",
"log 0.3.8 (registry+https://g... | 5 | 21 | 12 |
322d5515e5a6b837b7e25715c2f75906515a542f | Andrew Gallant | 2017-10-21T22:45:24 | style: 80 cols | diff --git a/Cargo.toml b/Cargo.toml
index 4f10128..bf999ee 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -53,7 +53,11 @@ lazy_static = "0.2"
[features]
avx-accel = ["bytecount/avx-accel"]
-simd-accel = ["bytecount/simd-accel", "regex/simd-accel", "encoding_rs/simd-accel"]
+simd-accel = [
+ "bytecount/simd-accel",
+... | 1 | 5 | 1 |
f4770c2094a9ca18807e591fcec09ce4455c60c2 | Shubham Lagwankar | 2017-10-22T02:18:34 | Fix typos | diff --git a/termcolor/src/lib.rs b/termcolor/src/lib.rs
index b07071e..ff8a645 100644
--- a/termcolor/src/lib.rs
+++ b/termcolor/src/lib.rs
@@ -239,7 +239,7 @@ impl io::Write for IoStandardStream {
}
}
-/// Same rigamorale for the locked variants of the standard streams.
+/// Same rigmarole for the locked vari... | 1 | 2 | 2 |
f887bc1f8673fea9969adae6e70b68e3761ba171 | Evgeny Kulikov | 2017-09-01T17:13:44 | printer: --only-matching works with --replace
When -o/--only-matching is used with -r/--replace, the replacement works
as expected. This is not a breaking change because the flags were
previously set to conflict. | diff --git a/src/app.rs b/src/app.rs
index 9f5a18b..c92e681 100644
--- a/src/app.rs
+++ b/src/app.rs
@@ -162,7 +162,7 @@ pub fn app() -> App<'static, 'static> {
.arg(flag("no-ignore-parent"))
.arg(flag("no-ignore-vcs"))
.arg(flag("null").short("0"))
- .arg(flag("only-matching").short("... | 3 | 21 | 2 |
363a4fa9b733c02b47c63f37c85244f2352fe260 | Sebastian Nowicki | 2017-10-16T13:29:55 | Fix path passed to try_create_bytes() | diff --git a/tests/workdir.rs b/tests/workdir.rs
index afa876b..1433f83 100644
--- a/tests/workdir.rs
+++ b/tests/workdir.rs
@@ -50,7 +50,8 @@ 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: &s... | 1 | 2 | 1 |
712311fdc6f569960ad80716e1b3071886df1821 | Sebastian Nowicki | 2017-10-16T12:35:26 | Don't create command until we know we can test it
For regression 210 we may not actually need to test anything if the file
system doesn't support creating files with invalid UTF-8 bytes. Don't
create the command until we know there will be an assertion. | diff --git a/tests/tests.rs b/tests/tests.rs
index 218ca56..4de1321 100644
--- a/tests/tests.rs
+++ b/tests/tests.rs
@@ -1014,10 +1014,10 @@ fn regression_210() {
let badutf8 = OsStr::from_bytes(&b"foo\xffbar"[..]);
let wd = WorkDir::new("regression_210");
- let mut cmd = wd.command();
// APFS does ... | 1 | 1 | 1 |
0d2354aca6a6a399b01047e1cfaf14cd17099f34 | Sebastian Nowicki | 2017-10-16T12:27:15 | Wrap comments to 79 columns | diff --git a/tests/workdir.rs b/tests/workdir.rs
index fb3ef4f..afa876b 100644
--- a/tests/workdir.rs
+++ b/tests/workdir.rs
@@ -41,12 +41,14 @@ impl WorkDir {
}
}
- /// Create a new file with the given name and contents in this directory, or panic on error.
+ /// Create a new file with the given ... | 1 | 8 | 4 |
8dc513b5d2fad3bfc820c60724575c02b0c259ae | Sebastian Nowicki | 2017-10-16T09:45:20 | Skip regression 210 test on APFS
APFS does not support creating filenames with invalid UTF-8 byte codes,
thus this test doesn't make sense. Skip it on file systems where this
shouldn't be possible.
Fixes #559 | diff --git a/tests/tests.rs b/tests/tests.rs
index dfb681d..218ca56 100644
--- a/tests/tests.rs
+++ b/tests/tests.rs
@@ -1015,11 +1015,14 @@ fn regression_210() {
let wd = WorkDir::new("regression_210");
let mut cmd = wd.command();
- wd.create(badutf8, "test");
- cmd.arg("-H").arg("test").arg(badutf8)... | 2 | 22 | 9 |
db14046de448742206b607f216af0b6d349cacd1 | James Smith | 2017-10-09T11:04:25 | Add purescript to built-in types
Purescript is a functional language that compiles to javascript (https://github.com/purescript/purescript) | diff --git a/ignore/src/types.rs b/ignore/src/types.rs
index 775e0c5..ac2cb70 100644
--- a/ignore/src/types.rs
+++ b/ignore/src/types.rs
@@ -206,6 +206,7 @@ const DEFAULT_TYPES: &'static [(&'static str, &'static [&'static str])] = &[
("php", &["*.php", "*.php3", "*.php4", "*.php5", "*.phtml"]),
("pod", &["*.p... | 1 | 1 | 0 |
e7c06b92fb996adcbc40d1f025e29c44de5383e8 | Antti Keränen | 2017-10-01T16:53:02 | Fix printing context after an early return from a search
Print the context if there's a context left to be printed after
returning early from a search (because of --max-count).
Fixes #402. | diff --git a/src/search_stream.rs b/src/search_stream.rs
index e558c2d..b2b49d2 100644
--- a/src/search_stream.rs
+++ b/src/search_stream.rs
@@ -299,6 +299,15 @@ impl<'a, R: io::Read, W: WriteColor> Searcher<'a, R, W> {
}
}
}
+ if self.after_context_remaining > 0 {
+ ... | 1 | 43 | 0 |
353806b87ae1807af22145347b5b7b945da6315a | dana | 2017-09-08T20:44:57 | Type improvements (`config`, `license`, `sh`, `systemd`, &c.)
- Add `license` type for various copyright/licence files
- Add `systemd` type for systemd config/unit files
- Update existing `config`, `jinja`, `json`, `sh`, `sql`, `xml`, `yaml` types
- Minor formatting improvements | diff --git a/ignore/src/types.rs b/ignore/src/types.rs
index 1312bb8..775e0c5 100644
--- a/ignore/src/types.rs
+++ b/ignore/src/types.rs
@@ -110,7 +110,7 @@ const DEFAULT_TYPES: &'static [(&'static str, &'static [&'static str])] = &[
("cmake", &["*.cmake", "CMakeLists.txt"]),
("coffeescript", &["*.coffee"]),
... | 1 | 77 | 10 |
413178bc2c176f3e150b58b725c490ad243e6984 | Félix Cantournet | 2017-09-28T16:07:07 | Add support for Dockerfiles filtering | diff --git a/ignore/src/types.rs b/ignore/src/types.rs
index c0a9bc2..1312bb8 100644
--- a/ignore/src/types.rs
+++ b/ignore/src/types.rs
@@ -123,6 +123,7 @@ const DEFAULT_TYPES: &'static [(&'static str, &'static [&'static str])] = &[
("cython", &["*.pyx"]),
("dart", &["*.dart"]),
("d", &["*.d"]),
+ ("... | 1 | 1 | 0 |
67b835fe2adf40989bc68ee62cec58f12887cf94 | James McCoy | 2017-10-07T02:15:57 | Color --replace text using the match type
Closes #521 | diff --git a/src/printer.rs b/src/printer.rs
index 6fc1670..1a6f7da 100644
--- a/src/printer.rs
+++ b/src/printer.rs
@@ -3,29 +3,58 @@ use std::fmt;
use std::path::Path;
use std::str::FromStr;
-use regex::bytes::{Captures, Regex, Replacer};
+use regex::bytes::{Captures, Match, Regex, Replacer};
use termcolor::{Col... | 1 | 55 | 29 |
214f2bef666efd686b1be250fc8e9f54a2cebb0f | Tri Nguyen | 2017-09-23T03:17:03 | add support for terraform file type | diff --git a/ignore/src/types.rs b/ignore/src/types.rs
index 7b3de37..c0a9bc2 100644
--- a/ignore/src/types.rs
+++ b/ignore/src/types.rs
@@ -195,6 +195,7 @@ const DEFAULT_TYPES: &'static [(&'static str, &'static [&'static str])] = &[
("tcl", &["*.tcl"]),
("tex", &["*.tex", "*.ltx", "*.cls", "*.sty", "*.bib"])... | 1 | 1 | 0 |
1136f8adabb694634e6bc0c5ca3842e9403fe697 | Christof Marti | 2017-09-08T23:00:10 | Avoid expensive check with --files (fixes #600) | diff --git a/src/main.rs b/src/main.rs
index 73ced95..1ff8eb0 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -108,6 +108,7 @@ fn run_parallel(args: Arc<Args>) -> Result<u64> {
let dent = match get_or_log_dir_entry(
result,
args.stdout_handle(),
+ args.files()... | 1 | 6 | 1 |
7eb1dd129ed8b5f98553d4e468a16b69cead129a | Philip Munksgaard | 2017-09-04T10:44:54 | Add support for Standard ML file types | diff --git a/ignore/src/types.rs b/ignore/src/types.rs
index cf78c9f..7b3de37 100644
--- a/ignore/src/types.rs
+++ b/ignore/src/types.rs
@@ -183,6 +183,7 @@ const DEFAULT_TYPES: &'static [(&'static str, &'static [&'static str])] = &[
("sass", &["*.sass", "*.scss"]),
("scala", &["*.scala"]),
("sh", &["*.b... | 1 | 1 | 0 |
a5f82e882661c76dca8d9101c87de4a5045962ed | Alex Burka | 2017-08-29T18:36:46 | ignore: add grouped toggle for standard filters | diff --git a/ignore/src/walk.rs b/ignore/src/walk.rs
index bd73309..3df7933 100644
--- a/ignore/src/walk.rs
+++ b/ignore/src/walk.rs
@@ -571,6 +571,29 @@ impl WalkBuilder {
self
}
+ /// Enables all the standard ignore filters.
+ ///
+ /// This toggles, as a group, all the filters that are enab... | 1 | 23 | 0 |
ca6bd648ab11aeb3b3db9cc570db4d3db52f7bb2 | Jesse Claven | 2017-08-30T09:57:12 | Add Elm file type. | diff --git a/ignore/src/types.rs b/ignore/src/types.rs
index 154dee3..cf78c9f 100644
--- a/ignore/src/types.rs
+++ b/ignore/src/types.rs
@@ -125,6 +125,7 @@ const DEFAULT_TYPES: &'static [(&'static str, &'static [&'static str])] = &[
("d", &["*.d"]),
("elisp", &["*.el"]),
("elixir", &["*.ex", "*.eex", "*... | 1 | 1 | 0 |
af77dd55a243b43fca51dea05180a314a2179f8d | Henri Sivonen | 2017-08-28T10:19:17 | Update encoding_rs to 0.7.0 | diff --git a/Cargo.lock b/Cargo.lock
index 2476312..056d11d 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -5,7 +5,7 @@ dependencies = [
"atty 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)",
"bytecount 0.1.7 (registry+https://github.com/rust-lang/crates.io-index)",
"clap 2.26.0 (registry+https://gith... | 2 | 4 | 4 |
3065a8c9c839f7e722a73e8375f2e41c7e084737 | Jack O'Connor | 2017-08-27T18:32:20 | restore the default SIGPIPE behavior as a temporary workaround
See https://github.com/BurntSushi/ripgrep/issues/200. | diff --git a/Cargo.lock b/Cargo.lock
index a9ed1c0..2476312 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -10,6 +10,7 @@ dependencies = [
"grep 0.1.6",
"ignore 0.2.2",
"lazy_static 0.2.8 (registry+https://github.com/rust-lang/crates.io-index)",
+ "libc 0.2.29 (registry+https://github.com/rust-lang/crates.io-index)"... | 3 | 22 | 0 |
208c11af56d4eaf81e6ea9ffaf7bfead43b9238f | Andrew Gallant | 2017-08-27T15:34:58 | deps: bump termcolor in lock file | diff --git a/Cargo.lock b/Cargo.lock
index 2cd64d0..a9ed1c0 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -16,7 +16,7 @@ dependencies = [
"num_cpus 1.6.2 (registry+https://github.com/rust-lang/crates.io-index)",
"regex 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)",
"same-file 0.1.3 (registry+https:... | 1 | 2 | 2 |
12a78a992cb5d77a5e2023fa023a9481e4ba9925 | Andrew Gallant | 2017-08-27T15:05:55 | termcolor-0.3.3 | diff --git a/termcolor/Cargo.toml b/termcolor/Cargo.toml
index 9d37199..12cade2 100644
--- a/termcolor/Cargo.toml
+++ b/termcolor/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "termcolor"
-version = "0.3.2" #:version
+version = "0.3.3" #:version
authors = ["Andrew Gallant <jamslam@gmail.com>"]
description = """
A ... | 1 | 1 | 1 |
d97c80be63f7cdd46f7bd8d9a17e92a698c51a89 | Andrew Gallant | 2017-08-27T14:14:25 | termcolor: make StandardStream be Send
This commit fixes a bug where the `StandardStream` type isn't `Send` on
Windows. This can cause some surprising compile breakage, and the only
motivation for it being non-Send was dubious. Namely, it was a result of
trying to eliminate code duplication.
This refactoring also eli... | diff --git a/termcolor/src/lib.rs b/termcolor/src/lib.rs
index 987bc32..b07071e 100644
--- a/termcolor/src/lib.rs
+++ b/termcolor/src/lib.rs
@@ -265,7 +265,7 @@ impl<'a> io::Write for IoStandardStreamLock<'a> {
/// Satisfies `io::Write` and `WriteColor`, and supports optional coloring
/// to either of the standard ou... | 1 | 88 | 37 |
5213bd30ea7b82005c566502253b5d06dbdf3d69 | Andrew Gallant | 2017-08-27T14:00:01 | termcolor: 80 cols | diff --git a/termcolor/src/lib.rs b/termcolor/src/lib.rs
index 4aa72be..987bc32 100644
--- a/termcolor/src/lib.rs
+++ b/termcolor/src/lib.rs
@@ -202,15 +202,23 @@ enum IoStandardStream {
impl IoStandardStream {
fn new(sty: StandardStreamType) -> IoStandardStream {
match sty {
- StandardStreamT... | 1 | 24 | 9 |
82d101907aece81bb3115d0083fa67b9a1c6e3b1 | Alex Burka | 2017-08-25T17:58:17 | ignore: document git_global enabled by default | diff --git a/ignore/src/walk.rs b/ignore/src/walk.rs
index fdb1283..bd73309 100644
--- a/ignore/src/walk.rs
+++ b/ignore/src/walk.rs
@@ -610,6 +610,8 @@ impl WalkBuilder {
/// does not exist or does not specify `core.excludesFile`, then
/// `$XDG_CONFIG_HOME/git/ignore` is read. If `$XDG_CONFIG_HOME` is not
... | 1 | 2 | 0 |
dc7e39a6bacf3eb5719d65034be0969709276cdc | Andrew Gallant | 2017-08-23T23:54:33 | cargo: add crates.io badges | diff --git a/Cargo.toml b/Cargo.toml
index 77df8d2..9a364c8 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -16,6 +16,10 @@ license = "Unlicense/MIT"
exclude = ["HomebrewFormula"]
build = "build.rs"
+[badges]
+travis-ci = { repository = "BurntSushi/ripgrep" }
+appveyor = { repository = "BurntSushi/ripgrep" }
+
[[bin]]... | 1 | 4 | 0 |
36c16eb00cae4894f6beb065a9d79e96a03f0283 | Andrew Gallant | 2017-08-23T23:52:13 | bump deps | diff --git a/Cargo.lock b/Cargo.lock
index 1493b09..136fd68 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -3,17 +3,17 @@ name = "ripgrep"
version = "0.5.2"
dependencies = [
"atty 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)",
- "bytecount 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)"... | 2 | 41 | 51 |
dbc91644fdc9af21ecdca9ee9702e9fa70cb9290 | Lilian A. Moraru | 2017-07-08T12:42:36 | Types extension and Yocto renaming to BitBake | diff --git a/ignore/src/types.rs b/ignore/src/types.rs
index daeb88b..154dee3 100644
--- a/ignore/src/types.rs
+++ b/ignore/src/types.rs
@@ -101,6 +101,7 @@ const DEFAULT_TYPES: &'static [(&'static str, &'static [&'static str])] = &[
("asciidoc", &["*.adoc", "*.asc", "*.asciidoc"]),
("asm", &["*.asm", "*.s", ... | 1 | 3 | 3 |
73c9ac4da57d817f8dc4b0d3648e91c5c837112c | Andrew Gallant | 2017-08-23T21:49:20 | integration tests: ignore regression_428 on Windows
The test is severely constrained to the specific ANSI formatting of
ripgrep in accordance with its default color scheme. The default color
scheme on Windows changed, which caused the test to fail.
For now, just disable the test on Windows. | diff --git a/tests/tests.rs b/tests/tests.rs
index ecf8364..dfb681d 100644
--- a/tests/tests.rs
+++ b/tests/tests.rs
@@ -1090,16 +1090,19 @@ clean!(regression_405, "test", ".", |wd: WorkDir, mut cmd: Command| {
});
// See: https://github.com/BurntSushi/ripgrep/issues/428
-clean!(regression_428_color_context_path, "... | 1 | 8 | 5 |
fe7fe74b0a9f2a389983307c783e6cbb468df2e1 | Henri Sivonen | 2017-08-20T06:35:02 | Pass the simd-accel feature to encoding_rs | diff --git a/Cargo.lock b/Cargo.lock
index dbb90e5..1493b09 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -87,6 +87,7 @@ version = "0.6.11"
source = "registry+https://github.com/rust-lang/crates.io-index"
dependencies = [
"cfg-if 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)",
+ "simd 0.2.0 (registry+... | 2 | 8 | 1 |
3d9acdab189006880e9d4ccdbe9ae42b164901ec | Gergő Pintér | 2017-08-16T14:46:13 | Add short key for julia type
Fixes #574 | diff --git a/ignore/src/types.rs b/ignore/src/types.rs
index 791008f..daeb88b 100644
--- a/ignore/src/types.rs
+++ b/ignore/src/types.rs
@@ -145,6 +145,7 @@ const DEFAULT_TYPES: &'static [(&'static str, &'static [&'static str])] = &[
("json", &["*.json"]),
("jsonl", &["*.jsonl"]),
("julia", &["*.jl"]),
+... | 1 | 1 | 0 |
b3a9c34515ec087bb7325db81f60ce26aeee3fd9 | Vurich | 2017-08-08T10:16:52 | Remove unused libc dependency | diff --git a/Cargo.lock b/Cargo.lock
index cbb1e79..dbb90e5 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -10,7 +10,6 @@ dependencies = [
"grep 0.1.6",
"ignore 0.2.2",
"lazy_static 0.2.8 (registry+https://github.com/rust-lang/crates.io-index)",
- "libc 0.2.23 (registry+https://github.com/rust-lang/crates.io-index)"... | 3 | 0 | 3 |
972ec1adc606b860b3989e332dd92a5c2e1e59f1 | Andrew Gallant | 2017-07-30T22:04:49 | bump clap to 2.26
Fixes #482 | diff --git a/Cargo.lock b/Cargo.lock
index bbd9bd9..cbb1e79 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -4,7 +4,7 @@ version = "0.5.2"
dependencies = [
"atty 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)",
"bytecount 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)",
- "clap 2.24.1 (re... | 1 | 23 | 12 |
b7c3cf314d31cec85f9e3e61edf385c9c2f4e7b5 | dana | 2017-07-29T15:58:04 | Add test for option-arguments with leading hyphens | diff --git a/tests/tests.rs b/tests/tests.rs
index 86fab01..ddc4d19 100644
--- a/tests/tests.rs
+++ b/tests/tests.rs
@@ -1728,12 +1728,22 @@ fn regression_506_word_boundaries_not_parenthesized() {
fn regression_568_leading_hyphen_option_arguments() {
let wd = WorkDir::new("regression_568_leading_hyphen_option_arg... | 1 | 12 | 2 |
6dce04963d4ee2d1bd6c17559d237f6dc88e048e | dana | 2017-07-29T15:54:10 | Allow options with non-numeric arguments to accept leading hyphens in arguments (fixes #568) | diff --git a/src/app.rs b/src/app.rs
index 6ca3489..bb1e89c 100644
--- a/src/app.rs
+++ b/src/app.rs
@@ -90,9 +90,11 @@ pub fn app() -> App<'static, 'static> {
.arg(flag("fixed-strings").short("F"))
.arg(flag("glob").short("g")
.takes_value(true).multiple(true).number_of_values(1)
+ ... | 2 | 20 | 1 |
354a5cad970453043fe25c2a184afc7808e235c2 | Lincoln Atkinson | 2017-07-17T22:01:13 | Fix invisible file path text in PowerShell (#557)
change default path color on Windows
This avoids a conflict with a PowerShell configuration that causes text to be invisible.
Fixes #342 | diff --git a/src/args.rs b/src/args.rs
index cd905b4..fb37c71 100644
--- a/src/args.rs
+++ b/src/args.rs
@@ -692,7 +692,10 @@ impl<'a> ArgMatches<'a> {
fn color_specs(&self) -> Result<ColorSpecs> {
// Start with a default set of color specs.
let mut specs = vec![
+ #[cfg(unix)]
... | 2 | 4 | 1 |
92e5fad27d54c1d06cf23ec7380a9fa9cda1574e | Andrew Gallant | 2017-07-17T21:56:33 | ignore-0.2.2 | diff --git a/Cargo.lock b/Cargo.lock
index bebb988..57b869a 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -8,7 +8,7 @@ dependencies = [
"encoding_rs 0.5.1 (registry+https://github.com/rust-lang/crates.io-index)",
"env_logger 0.4.2 (registry+https://github.com/rust-lang/crates.io-index)",
"grep 0.1.6",
- "ignore 0.2... | 3 | 4 | 4 |
0668c74ed49320c4224c4ea526aca07692bf590a | Behnam Esfahbod | 2017-07-13T03:55:07 | [ignore] Fix matched_path_or_any_parents() for patterns ending in slash
In `matched_path_or_any_parents()` implementation, we missed the point
that when we start walking up the tree, we have to set `is_dir` to
`true`, so path `ROOT/a/b/c` matches pattern `/a/`, although the
original path is not a dir. | diff --git a/ignore/src/gitignore.rs b/ignore/src/gitignore.rs
index b44428a..8510955 100644
--- a/ignore/src/gitignore.rs
+++ b/ignore/src/gitignore.rs
@@ -220,15 +220,17 @@ impl Gitignore {
!path.has_root(),
"path is expect to be under the root"
);
- loop {
- match... | 2 | 140 | 104 |
1c032989035c042d01485f2313dc85d41e3bdf1c | Andrew Gallant | 2017-07-13T02:26:59 | bump ignore version, take 2 | diff --git a/Cargo.lock b/Cargo.lock
index 6c3b57b..bebb988 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -8,7 +8,7 @@ dependencies = [
"encoding_rs 0.5.1 (registry+https://github.com/rust-lang/crates.io-index)",
"env_logger 0.4.2 (registry+https://github.com/rust-lang/crates.io-index)",
"grep 0.1.6",
- "ignore 0.2... | 1 | 2 | 2 |
e0e8f26c567db0f1ee3748b430eab1a2835d1fdf | Andrew Gallant | 2017-07-13T02:26:23 | bump ignore version | diff --git a/Cargo.toml b/Cargo.toml
index 08c2830..065393f 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -32,7 +32,7 @@ clap = "2.24.1"
encoding_rs = "0.5.0"
env_logger = { version = "0.4", default-features = false }
grep = { version = "0.1.5", path = "grep" }
-ignore = { version = "0.2.0", path = "ignore" }
+ignore ... | 1 | 1 | 1 |
f5337329f4380e832b8b34886f39f00ae44f8c3f | Andrew Gallant | 2017-07-13T02:08:53 | ignore-0.2.1 | diff --git a/ignore/Cargo.toml b/ignore/Cargo.toml
index 0db7d77..61564ab 100644
--- a/ignore/Cargo.toml
+++ b/ignore/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "ignore"
-version = "0.2.0" #:version
+version = "0.2.1" #:version
authors = ["Andrew Gallant <jamslam@gmail.com>"]
description = """
A fast library fo... | 1 | 1 | 1 |
9b3921098a6804879a4425716bfb72a8a003a313 | Gabriel | 2017-07-07T15:44:26 | Tweak long_version features output
This reuses the systemd convention of putting flags on a separate line.
All credit to okdana for the implementation. Addresses #524. | diff --git a/src/app.rs b/src/app.rs
index 52d9d28..6ca3489 100644
--- a/src/app.rs
+++ b/src/app.rs
@@ -199,18 +199,18 @@ lazy_static! {
let mut features: Vec<&str> = vec![];
if cfg!(feature = "avx-accel") {
- features.push("+avx-accel");
+ features.push("+AVX");
} el... | 1 | 5 | 5 |
ad262f114623679f701bb836996977fc57f5dd91 | dana | 2017-07-07T15:30:59 | Update `--version` output to show compile-time features
Fixes #524 | diff --git a/src/app.rs b/src/app.rs
index 832ac6e..52d9d28 100644
--- a/src/app.rs
+++ b/src/app.rs
@@ -50,6 +50,7 @@ pub fn app() -> App<'static, 'static> {
App::new("ripgrep")
.author(crate_authors!())
.version(crate_version!())
+ .long_version(LONG_VERSION.as_str())
.about(ABO... | 1 | 19 | 0 |
c8a5a7a3f432df7a21edfe027107e63d1b67cd23 | Jordan Danford | 2017-07-06T06:28:46 | Fix minor grammar issues in docs for `ignore::Walk` | diff --git a/ignore/src/walk.rs b/ignore/src/walk.rs
index a5989d1..fdb1283 100644
--- a/ignore/src/walk.rs
+++ b/ignore/src/walk.rs
@@ -380,16 +380,16 @@ impl DirEntryRaw {
/// is: `.ignore`, `.gitignore`, `.git/info/exclude`, global gitignore and
/// finally explicitly added ignore files. Note that precedence betwe... | 1 | 9 | 9 |
4047d9db710026b7f003243032f52d7c99c41ded | Peter S Panov | 2017-06-29T00:57:33 | add --iglob flag
Working with Chris Stadler, implemented
https://github.com/BurntSushi/ripgrep/issues/163#issuecomment-300012592 | diff --git a/ignore/src/gitignore.rs b/ignore/src/gitignore.rs
index 6865526..7ae91bf 100644
--- a/ignore/src/gitignore.rs
+++ b/ignore/src/gitignore.rs
@@ -254,6 +254,7 @@ pub struct GitignoreBuilder {
builder: GlobSetBuilder,
root: PathBuf,
globs: Vec<Glob>,
+ case_insensitive: bool,
}
impl Giti... | 5 | 96 | 0 |
b6f1e5db1aee844d14876876846b8e3aaf70b0ed | Bryan Richter | 2017-06-27T18:10:36 | Add cabal files for Haskell packages | diff --git a/ignore/src/types.rs b/ignore/src/types.rs
index 4359af2..791008f 100644
--- a/ignore/src/types.rs
+++ b/ignore/src/types.rs
@@ -102,6 +102,7 @@ const DEFAULT_TYPES: &'static [(&'static str, &'static [&'static str])] = &[
("asm", &["*.asm", "*.s", "*.S"]),
("awk", &["*.awk"]),
("c", &["*.c", ... | 1 | 1 | 0 |
9e51b18ac75bba727dc265ad8d812ad517d81042 | Andrew Gallant | 2017-06-19T17:46:43 | bump wincolor dep | diff --git a/Cargo.lock b/Cargo.lock
index 2832a58..6c3b57b 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -249,7 +249,7 @@ dependencies = [
name = "termcolor"
version = "0.3.2"
dependencies = [
- "wincolor 0.1.3",
+ "wincolor 0.1.4",
]
[[package]]
@@ -325,7 +325,7 @@ source = "registry+https://github.com/rust-lang... | 1 | 2 | 2 |
9d7b6eb09a471cdf1eac981b5800f126a7dff92e | Andrew Gallant | 2017-06-19T17:26:15 | wincolor-0.1.4 | diff --git a/wincolor/Cargo.toml b/wincolor/Cargo.toml
index cb89619..3bacc0d 100644
--- a/wincolor/Cargo.toml
+++ b/wincolor/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "wincolor"
-version = "0.1.3" #:version
+version = "0.1.4" #:version
authors = ["Andrew Gallant <jamslam@gmail.com>"]
description = """
A simpl... | 1 | 1 | 1 |
7763c98188de44bca1136712ce40b60e031496bd | Alex Crichton | 2017-06-19T15:39:34 | wincolor: Re-fetch the console on all calls
The primary motivation for this commit was rust-lang/cargo#4189 where dropping a
`wincolor::Console` would call `CloseHandle` to close the console handle. Cargo
creates a few `Console` instances so it ended up closing stdout a little
earlier as intended!
The `GetStdHandle` ... | diff --git a/wincolor/src/win.rs b/wincolor/src/win.rs
index e61240b..c0ad835 100644
--- a/wincolor/src/win.rs
+++ b/wincolor/src/win.rs
@@ -2,7 +2,7 @@ use std::io;
use std::mem;
use kernel32;
-use winapi::{DWORD, HANDLE, WORD};
+use winapi::{DWORD, WORD};
use winapi::winbase::{STD_ERROR_HANDLE, STD_OUTPUT_HANDLE... | 1 | 7 | 14 |
06393f888c664d0fe2a31422a05b60f6d1bd0b6a | Evan.Mattiza | 2017-06-15T03:07:55 | fix word boundary w/ capture group
fixes BurntSushi/ripgrep#506. Word boundary search as arg had unexpected
behavior. added capture group to regex to encapsulate 'or' option search and
prevent expansion and partial boundary finds.
Signed-off-by: Evan.Mattiza <emattiza@gmail.com> | diff --git a/src/args.rs b/src/args.rs
index 068a40d..b0e5d64 100644
--- a/src/args.rs
+++ b/src/args.rs
@@ -505,7 +505,7 @@ impl<'a> ArgMatches<'a> {
/// flag is set. Otherwise, the pattern is returned unchanged.
fn word_pattern(&self, pat: String) -> String {
if self.is_present("word-regexp") {
- ... | 2 | 18 | 1 |
e0989ef13bf6be0659fbb8bac3975522b155cbc1 | Sid-Ali Teir | 2017-06-12T17:09:08 | add yocto file types | diff --git a/ignore/src/types.rs b/ignore/src/types.rs
index bde413f..4359af2 100644
--- a/ignore/src/types.rs
+++ b/ignore/src/types.rs
@@ -202,6 +202,7 @@ const DEFAULT_TYPES: &'static [(&'static str, &'static [&'static str])] = &[
("xml", &["*.xml"]),
("yacc", &["*.y"]),
("yaml", &["*.yaml", "*.yml"])... | 1 | 1 | 0 |
45e850aff769a9d3f1fc6457bd5e1390021f433c | Gent Bajraj | 2017-05-29T00:42:28 | Add julia as file type | diff --git a/ignore/src/types.rs b/ignore/src/types.rs
index 436f56d..bde413f 100644
--- a/ignore/src/types.rs
+++ b/ignore/src/types.rs
@@ -143,6 +143,7 @@ const DEFAULT_TYPES: &'static [(&'static str, &'static [&'static str])] = &[
]),
("json", &["*.json"]),
("jsonl", &["*.jsonl"]),
+ ("julia", &["*... | 1 | 1 | 0 |
f2d1c582a803a237924093be2f5e0ee45e8782ee | Eric Nielsen | 2017-06-01T23:13:43 | Use clap's overrides_with and default_value_if
to better organize options. These are the changes:
- color will have default value of "never" if --vimgrep is given,
and only if no --color option is given
- last overrides previous: --line-number and --no-line-number, --heading
and --no-heading, --with-filename and -... | diff --git a/src/app.rs b/src/app.rs
index 3217467..e43dc5a 100644
--- a/src/app.rs
+++ b/src/app.rs
@@ -80,7 +80,8 @@ pub fn app() -> App<'static, 'static> {
.value_name("WHEN")
.takes_value(true)
.hide_possible_values(true)
- .possible_values(&["never", "auto", "a... | 2 | 11 | 12 |
ab70815ea276658e38c916563b00cdc86fda88e6 | Brian Gianforcaro | 2017-06-12T02:50:39 | Add "msbuild" filetype for msbuild related files
This commit adds a "msbuild" filetype grouping, with
a few different file types being mapped to this grouping:
- MSBuild project files: .csproj, .vcxproj, .fsproj, .proj
- MSBuild shared property files: .props
- MSBuild shared targets files: .targets | diff --git a/ignore/src/types.rs b/ignore/src/types.rs
index df6ef65..436f56d 100644
--- a/ignore/src/types.rs
+++ b/ignore/src/types.rs
@@ -155,6 +155,7 @@ const DEFAULT_TYPES: &'static [(&'static str, &'static [&'static str])] = &[
("matlab", &["*.m"]),
("mk", &["mkfile"]),
("ml", &["*.ml"]),
+ ("ms... | 1 | 1 | 0 |
27f97db510e0b2d891e63e21c1d1636d2f5cb1fb | Brian Gianforcaro | 2017-06-12T02:42:52 | Add .inl as one of the c++ file typee definitions.
.inl files are often used by convention to include
both inline functions, or function templates. | diff --git a/ignore/src/types.rs b/ignore/src/types.rs
index 5467f5e..df6ef65 100644
--- a/ignore/src/types.rs
+++ b/ignore/src/types.rs
@@ -111,7 +111,7 @@ const DEFAULT_TYPES: &'static [(&'static str, &'static [&'static str])] = &[
("config", &["*.config"]),
("cpp", &[
"*.C", "*.cc", "*.cpp", "*.cx... | 1 | 1 | 1 |
506ad1f3cfd058c788e37cb72c986d1b5f52a0c9 | Taryn Hill | 2017-06-06T18:37:48 | Add a cshtml ignore type | diff --git a/ignore/src/types.rs b/ignore/src/types.rs
index 312b112..5467f5e 100644
--- a/ignore/src/types.rs
+++ b/ignore/src/types.rs
@@ -116,6 +116,7 @@ const DEFAULT_TYPES: &'static [(&'static str, &'static [&'static str])] = &[
("crystal", &["Projectfile", "*.cr"]),
("cs", &["*.cs"]),
("csharp", &[... | 1 | 1 | 0 |
112b3c5e0ae232fdbce90cd505c57f2c4abc4a22 | Andrew Gallant | 2017-05-29T13:51:58 | Fix another bug in -o/--only-matching.
The handling of the -o/--only-matching was incorrect. We cannot ever
re-run regexes on a *subset* of a matched line, because it doesn't take
into account zero width assertions on the edges of the regex. This
occurs whenever an end user uses an assertion explicity, but also occurs... | diff --git a/src/printer.rs b/src/printer.rs
index 5aaf147..843b353 100644
--- a/src/printer.rs
+++ b/src/printer.rs
@@ -3,7 +3,7 @@ use std::fmt;
use std::path::Path;
use std::str::FromStr;
-use regex::bytes::{Regex, Replacer, Captures};
+use regex::bytes::{Captures, Regex, Replacer};
use termcolor::{Color, Color... | 2 | 35 | 18 |
ff898cd1056f4fc23181edbadb7fb495ae9646ef | Eric Nielsen | 2017-05-25T22:32:21 | Remove vestigial color function from src/args.rs
It's usage was replaced by the `color_choice` function. Also, `color`
was outdated, as it didn't include testing for the new "ansi" option. | diff --git a/src/args.rs b/src/args.rs
index cc3f739..703ab3b 100644
--- a/src/args.rs
+++ b/src/args.rs
@@ -35,7 +35,6 @@ pub struct Args {
paths: Vec<PathBuf>,
after_context: usize,
before_context: usize,
- color: bool,
color_choice: termcolor::ColorChoice,
colors: ColorSpecs,
column:... | 1 | 0 | 19 |
1e3fc79949501141367d8257f24bdd93a001acb0 | Eric Nielsen | 2017-05-25T00:43:31 | Should show filename for one file with vimgrep
With vim configured with:
set grepprg=rg\ --vimgrep
set grepformat^=%f:%l:%c:%m
and running the command `:grep 'vimgrep' doc/rg.1`, the output should
be:
doc/rg.1:446:8:.B \-\-vimgrep
but the actual output was:
446:8:.B \-\-vimgrep
Same issue would h... | diff --git a/src/args.rs b/src/args.rs
index 9e941a7..cc3f739 100644
--- a/src/args.rs
+++ b/src/args.rs
@@ -532,6 +532,7 @@ impl<'a> ArgMatches<'a> {
false
} else {
self.is_present("with-filename")
+ || self.is_present("vimgrep")
|| paths.len() > 1
... | 1 | 1 | 0 |
cd6c54f5f4ec6882d5ee3f8c5f0ce74e025477af | Manuel Vives | 2017-05-24T18:56:53 | Add support for QMake files | diff --git a/ignore/src/types.rs b/ignore/src/types.rs
index 2b8c1dd..312b112 100644
--- a/ignore/src/types.rs
+++ b/ignore/src/types.rs
@@ -166,6 +166,7 @@ const DEFAULT_TYPES: &'static [(&'static str, &'static [&'static str])] = &[
("pod", &["*.pod"]),
("ps", &["*.cdxml", "*.ps1", "*.ps1xml", "*.psd1", "*.p... | 1 | 1 | 0 |
44c03f58bc0a87d7dab85ba07283dee336237031 | Andrew Gallant | 2017-05-21T19:56:56 | bump deps, redux
This only bumps the regex dependency. The new clap version causes a bump
in unicode-segmentation, which in turn requires a Rust 1.15, which is
above ripgrep's currently supported minimum Rust version of 1.12. | diff --git a/Cargo.lock b/Cargo.lock
index cff7b21..2832a58 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -10,12 +10,12 @@ dependencies = [
"grep 0.1.6",
"ignore 0.2.0",
"lazy_static 0.2.8 (registry+https://github.com/rust-lang/crates.io-index)",
- "libc 0.2.22 (registry+https://github.com/rust-lang/crates.io-index... | 1 | 23 | 23 |
d1a6ab922e574c9cb7178a09e0dbc83fd01cc3c1 | Andrew Gallant | 2017-05-21T19:52:58 | Revert "bump deps"
This reverts commit b860fa3acd99715935c4b9ad50d7965a93d8ecd6. | diff --git a/Cargo.lock b/Cargo.lock
index 89fbb16..cff7b21 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -4,18 +4,18 @@ version = "0.5.2"
dependencies = [
"atty 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)",
"bytecount 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)",
- "clap 2.24.2 (... | 1 | 32 | 32 |
b860fa3acd99715935c4b9ad50d7965a93d8ecd6 | Andrew Gallant | 2017-05-21T16:33:13 | bump deps | diff --git a/Cargo.lock b/Cargo.lock
index cff7b21..89fbb16 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -4,18 +4,18 @@ version = "0.5.2"
dependencies = [
"atty 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)",
"bytecount 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)",
- "clap 2.24.1 (... | 1 | 32 | 32 |
229b8e3b3322177e2a518d87358b3503dfc18cdf | Marc Tiehuis | 2017-05-19T12:12:38 | Make --quiet flag apply when using --files option
Fixes #483. | diff --git a/src/main.rs b/src/main.rs
index 501f2ed..5cae6a1 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -192,7 +192,9 @@ fn run_files_parallel(args: Arc<Args>) -> Result<u64> {
let mut printer = print_args.printer(stdout.lock());
let mut file_count = 0;
for dent in rx.iter() {
- ... | 2 | 35 | 2 |
5a666b042d45aacb2ea221d9df6ee385256c965f | Andrew Gallant | 2017-05-11T23:08:59 | bump ripgrep, ignore, globset
The `ignore` and `globset` crates both got breaking changes in the
course of fixing #444, so increase 0.x to 0.(x+1). | diff --git a/Cargo.lock b/Cargo.lock
index 4fee3b9..cff7b21 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -1,6 +1,6 @@
[root]
name = "ripgrep"
-version = "0.5.1"
+version = "0.5.2"
dependencies = [
"atty 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)",
"bytecount 0.1.6 (registry+https://github.com/r... | 4 | 10 | 10 |
0b685c842993ea55bbabbd7bde5f29f5636bcf9f | Andrew Gallant | 2017-05-08T22:04:37 | deps: update clap to 2.24
Fixes #442 | diff --git a/Cargo.lock b/Cargo.lock
index eb5cb7e..4fee3b9 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -4,17 +4,17 @@ version = "0.5.1"
dependencies = [
"atty 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)",
"bytecount 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)",
- "clap 2.23.1 (... | 2 | 28 | 28 |
362abed44a000da3b31e5dd027e16eb4e36e1bed | Roman Proskuryakov | 2017-04-20T15:02:52 | Fix reiteration of the first found match with --only-mathing flag
Fixes #451 | diff --git a/src/printer.rs b/src/printer.rs
index 48492fe..5aaf147 100644
--- a/src/printer.rs
+++ b/src/printer.rs
@@ -242,23 +242,13 @@ impl<W: WriteColor> Printer<W> {
line_number: Option<u64>,
) {
if !self.line_per_match && !self.only_matching {
- let column =
- if ... | 2 | 54 | 18 |
c50b8b4125dc7f1181944dd92d0aca97c2450421 | Andrew Gallant | 2017-04-12T22:12:34 | Add better error messages for invalid globs.
This threads the original glob given by end users through all of the
glob parsing errors. This was slightly trickier than it might appear
because the gitignore implementation actually modifies the glob before
compiling it. So in order to get better glob error messages every... | diff --git a/globset/src/glob.rs b/globset/src/glob.rs
index fbfc7d9..bb7b060 100644
--- a/globset/src/glob.rs
+++ b/globset/src/glob.rs
@@ -9,7 +9,7 @@ use std::str;
use regex;
use regex::bytes::Regex;
-use {Candidate, Error, new_regex};
+use {Candidate, Error, ErrorKind, new_regex};
/// Describes a matching st... | 5 | 151 | 58 |
7ad23e5565e9dca308c52929571c0609c28291c6 | Andrew Gallant | 2017-04-12T21:21:07 | Use for_label_no_replacement.
This will cause certain unsupported legacy encodings to act as if they
don't exist, in order to avoid using an unhelpful (in the context of
file searching) "replacement" encoding.
Kudos to @hsivonen for chirping about this! | diff --git a/src/args.rs b/src/args.rs
index 48c4ad5..9e941a7 100644
--- a/src/args.rs
+++ b/src/args.rs
@@ -737,7 +737,7 @@ impl<'a> ArgMatches<'a> {
if label == "auto" {
return Ok(None);
}
- match Encoding::for_label(label.as_bytes()) {
+ ... | 3 | 33 | 1 |
66efbad871620fe2dbe675438fdc8d9922e72826 | Marc Tiehuis | 2017-04-01T21:55:58 | Add dfa-size-limit and regex-size-limit arguments
Fixes #362. | diff --git a/src/app.rs b/src/app.rs
index b8f25b8..44e4951 100644
--- a/src/app.rs
+++ b/src/app.rs
@@ -41,7 +41,9 @@ OPTIONS:
/// in a `build.rs` script to build shell completion files.
pub fn app() -> App<'static, 'static> {
let arg = |name| {
- Arg::with_name(name).help(USAGES[name].short).long_help(U... | 3 | 139 | 23 |
685b431d80a08a09d73c53a34595813d93b8f551 | Andrew Gallant | 2017-04-09T13:46:37 | bump deps | diff --git a/Cargo.lock b/Cargo.lock
index 167ffe3..d7de30f 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -9,7 +9,7 @@ dependencies = [
"env_logger 0.4.2 (registry+https://github.com/rust-lang/crates.io-index)",
"grep 0.1.6",
"ignore 0.1.9",
- "lazy_static 0.2.5 (registry+https://github.com/rust-lang/crates.io-inde... | 1 | 4 | 4 |
487713aa349de277bdbe16e2ee4f0d0d31f1e44b | Andrew Gallant | 2017-04-09T13:45:00 | bump ignore | diff --git a/Cargo.lock b/Cargo.lock
index 7327d03..167ffe3 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -8,7 +8,7 @@ dependencies = [
"encoding_rs 0.5.0 (registry+https://github.com/rust-lang/crates.io-index)",
"env_logger 0.4.2 (registry+https://github.com/rust-lang/crates.io-index)",
"grep 0.1.6",
- "ignore 0.1... | 3 | 4 | 4 |
0c298f60a68ed9c98192adaa23f1f517366ce336 | Kevin K | 2017-04-05T05:14:55 | updates clap and removes home rolled -h/--help distinction
This commit updates clap to v2.23.0
The update contained a bug fix in clap that results in broken code in
ripgrep. ripgrep was relying on the bug, but this commit fixes that
issue. The bug centered around not being able to override the
auto-generated help mes... | diff --git a/Cargo.lock b/Cargo.lock
index 072339a..7327d03 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -4,7 +4,7 @@ version = "0.5.0"
dependencies = [
"atty 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)",
"bytecount 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)",
- "clap 2.22.2 (re... | 5 | 10 | 45 |
79271fcb33a7fa1a13df4e9aa3b268e0e8bb3605 | Kosta Welke | 2017-04-04T19:38:40 | fix typo in comment | diff --git a/src/search_buffer.rs b/src/search_buffer.rs
index 068b120..d2e3692 100644
--- a/src/search_buffer.rs
+++ b/src/search_buffer.rs
@@ -4,7 +4,7 @@ single buffer. Typically, the source of the buffer is a memory map. This can
be useful for when memory maps are faster than streaming search.
Note that this mo... | 1 | 1 | 1 |
fc975af8e9cf489d4579cf8ff014a823c1e059d5 | Andrew Gallant | 2017-03-31T19:59:04 | Enforce 79 column limit. Grr. | diff --git a/src/app.rs b/src/app.rs
index 19a243b..d09160a 100644
--- a/src/app.rs
+++ b/src/app.rs
@@ -388,10 +388,11 @@ lazy_static! {
"Limit the number of matching lines per file searched to NUM.");
doc!(h, "max-filesize",
"Ignore files larger than NUM in size.",
- "... | 5 | 15 | 14 |
1425d6735e8418361a1dd286d578b8ff8ef0f173 | Roman Proskuryakov | 2017-03-30T23:44:42 | Bamp clap to 2.22.2
Fixes #426 , #418 | diff --git a/Cargo.lock b/Cargo.lock
index ce29640..072339a 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -4,7 +4,7 @@ version = "0.5.0"
dependencies = [
"atty 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)",
"bytecount 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)",
- "clap 2.22.1 (re... | 1 | 3 | 3 |
aed3ccb9c7392e3f075baa38214107dd80e9cc9e | Roman Proskuryakov | 2017-03-30T21:13:07 | Improves Printer, fixes some bugs | diff --git a/src/printer.rs b/src/printer.rs
index 809e0d7..6667e99 100644
--- a/src/printer.rs
+++ b/src/printer.rs
@@ -204,22 +204,14 @@ impl<W: WriteColor> Printer<W> {
pub fn path<P: AsRef<Path>>(&mut self, path: P) {
let path = strip_prefix("./", path.as_ref()).unwrap_or(path.as_ref());
self... | 2 | 84 | 68 |
33c95d2919cb3ecdcd78991690f31bd2631008ab | Andrew Gallant | 2017-03-30T16:33:31 | bump deps | diff --git a/Cargo.lock b/Cargo.lock
index f1a6f5b..ce29640 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -4,12 +4,12 @@ version = "0.5.0"
dependencies = [
"atty 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)",
"bytecount 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)",
- "clap 2.21.1 (... | 1 | 14 | 14 |
685cc6c5622b02fd5a53c8bc953176b159c780e4 | Andrew Gallant | 2017-03-21T11:56:49 | Add vim type.
It's the same as the vimscript type, but shorter and more obvious.
Fixes #415 | diff --git a/ignore/src/types.rs b/ignore/src/types.rs
index f351560..6e0c8bd 100644
--- a/ignore/src/types.rs
+++ b/ignore/src/types.rs
@@ -191,6 +191,7 @@ const DEFAULT_TYPES: &'static [(&'static str, &'static [&'static str])] = &[
("twig", &["*.twig"]),
("vala", &["*.vala"]),
("vb", &["*.vb"]),
+ (... | 1 | 1 | 0 |
08c017330f9838a7aa2bee8ced43a4bcae7e9c2b | Andrew Gallant | 2017-03-15T11:15:39 | bump termcolor dep | diff --git a/Cargo.lock b/Cargo.lock
index a94776f..f1a6f5b 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -17,7 +17,7 @@ dependencies = [
"num_cpus 1.3.0 (registry+https://github.com/rust-lang/crates.io-index)",
"regex 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)",
"same-file 0.1.3 (registry+https:... | 1 | 2 | 2 |
2f3a8c7f6915c417cc481edfd8b420a617e32120 | Andrew Gallant | 2017-03-15T10:58:09 | termcolor-0.3.2 | diff --git a/termcolor/Cargo.toml b/termcolor/Cargo.toml
index 2d253a0..9d37199 100644
--- a/termcolor/Cargo.toml
+++ b/termcolor/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "termcolor"
-version = "0.3.1" #:version
+version = "0.3.2" #:version
authors = ["Andrew Gallant <jamslam@gmail.com>"]
description = """
A ... | 1 | 1 | 1 |
0ebd5465b70deb511ce1e11e5661d8d86e9d62fd | Andrew Gallant | 2017-03-14T19:09:16 | remove allow(dead_code) | diff --git a/src/decoder.rs b/src/decoder.rs
index 345389a..2218670 100644
--- a/src/decoder.rs
+++ b/src/decoder.rs
@@ -1,5 +1,3 @@
-#![allow(dead_code)]
-
use std::cmp;
use std::io::{self, Read};
@@ -290,10 +288,6 @@ mod tests {
use super::{Bom, BomPeeker, DecodeReader};
- fn utf8(bytes: &[u8]) -> &st... | 1 | 0 | 6 |
5cb4bb9ea05bc0b9df79b355e4d67cfcfed8f129 | Andrew Gallant | 2017-03-14T19:09:11 | bump ripgrep version in Cargo.lock | diff --git a/Cargo.lock b/Cargo.lock
index 5d11c80..a94776f 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -1,6 +1,6 @@
[root]
name = "ripgrep"
-version = "0.4.0"
+version = "0.5.0"
dependencies = [
"atty 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)",
"bytecount 0.1.6 (registry+https://github.com/r... | 1 | 1 | 1 |
95bc678403b63d98b717636e79fdfbabc8949c8a | Andrew Gallant | 2017-03-13T02:30:54 | Fix interaction with clap.
Previously, `get_matches` would return even if --help or --version was
given, and we could check for them manually. That behavior seems to have
changed. Instead, we must use get_matches_safe to inspect the error to
determine what happened.
We can't use the same process for -V/--version sinc... | diff --git a/src/app.rs b/src/app.rs
index 21cf241..d327e27 100644
--- a/src/app.rs
+++ b/src/app.rs
@@ -68,12 +68,12 @@ fn app<F>(next_line_help: bool, doc: F) -> App<'static, 'static>
// consistent with short/long views.
.arg(arg("help-short").short("h"))
.arg(flag("help"))
- .arg(fl... | 2 | 15 | 10 |
c648eadbaa9e6e8ab819a7ac2a699a7f4a3ceae4 | Andrew Gallant | 2017-03-13T01:33:13 | Bump and update deps. | diff --git a/Cargo.lock b/Cargo.lock
index 6901b52..5d11c80 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -4,11 +4,11 @@ version = "0.4.0"
dependencies = [
"atty 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)",
"bytecount 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)",
- "clap 2.20.5 (... | 6 | 27 | 27 |
4ef481813084b83e04ece4ed44ccb38b49f7e817 | Andrew Gallant | 2017-03-13T00:21:38 | No line numbers when searching only stdin.
This changes the default behavior of ripgrep to *not* show line numbers
when it is printing to a tty and is only searching stdin.
Fixes #380
[breaking-change] | diff --git a/src/args.rs b/src/args.rs
index 7e60cd7..cc48b7a 100644
--- a/src/args.rs
+++ b/src/args.rs
@@ -319,6 +319,7 @@ impl<'a> ArgMatches<'a> {
/// configuration.
fn to_args(&self) -> Result<Args> {
let paths = self.paths();
+ let line_number = self.line_number(&paths);
let mma... | 1 | 5 | 3 |
8db24e135375a2510e3eca85c72005172788471e | Andrew Gallant | 2017-03-13T00:21:22 | Stop aggressive inlining.
It's not clear what exactly is happening here, but the Read implementation
for text decoding appears a bit sensitive. Small pertubations in the code
appear to have a nearly 100% impact on the overall speed of ripgrep when
searching UTF-16 files.
I haven't had the time to examine the generate... | diff --git a/src/decoder.rs b/src/decoder.rs
index d43cbdb..345389a 100644
--- a/src/decoder.rs
+++ b/src/decoder.rs
@@ -251,6 +251,7 @@ impl<R: io::Read, B: AsMut<[u8]>> DecodeReader<R, B> {
Ok(nwrite)
}
+ #[inline(never)] // impacts perf...
fn detect(&mut self) -> io::Result<()> {
let... | 1 | 1 | 0 |
b3fd0df94bbf928ea00cf9a10bd007f4b236d85b | Joshua Horwitz | 2017-03-11T02:34:09 | Fixes #394 - Added in svg to the types file | diff --git a/ignore/src/types.rs b/ignore/src/types.rs
index 6fb97e1..f351560 100644
--- a/ignore/src/types.rs
+++ b/ignore/src/types.rs
@@ -178,6 +178,7 @@ const DEFAULT_TYPES: &'static [(&'static str, &'static [&'static str])] = &[
("stylus", &["*.styl"]),
("sql", &["*.sql"]),
("sv", &["*.v", "*.vg", "... | 1 | 1 | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.