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 |
|---|---|---|---|---|---|---|---|
6b15ce2342d76ceccc16fad7614eada218a663da | Andrew Gallant | 2018-04-21T16:13:16 | deps: update remove_dir_all | diff --git a/Cargo.lock b/Cargo.lock
index b24a967..a3535be 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -220,7 +220,7 @@ dependencies = [
[[package]]
name = "remove_dir_all"
-version = "0.5.0"
+version = "0.5.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
dependencies = [
"winapi 0.3.4 (reg... | 1 | 3 | 3 |
4c0b0c6c9d9fb76e0dbd3492583e89e2e5d0882c | Andrew Gallant | 2018-04-21T16:10:16 | ignore: release 0.4.2 | diff --git a/Cargo.lock b/Cargo.lock
index 9d5901f..b24a967 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -117,7 +117,7 @@ dependencies = [
[[package]]
name = "ignore"
-version = "0.4.1"
+version = "0.4.2"
dependencies = [
"crossbeam 0.3.2 (registry+https://github.com/rust-lang/crates.io-index)",
"globset 0.4.0"... | 2 | 3 | 3 |
6c8b1e93d5cea366b1c484ea6afa5f71fe01ac78 | Andrew Gallant | 2018-04-21T16:09:15 | globset: release 0.4.0 | diff --git a/Cargo.lock b/Cargo.lock
index 3e8c221..9d5901f 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -95,7 +95,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
[[package]]
name = "globset"
-version = "0.3.0"
+version = "0.4.0"
dependencies = [
"aho-corasick 0.6.4 (registry+https://github.... | 4 | 6 | 6 |
ebdb7c1d4c027de7ee2ffc2675420cd876b97237 | Andrew Gallant | 2018-04-21T14:16:47 | ignore: impl Clone for DirEntry
There is a small hiccup here in that a `DirEntry` can embed errors
associated with reading an ignore file, which can be accessed and logged
by consumers if desired. That error type can contain an io::Error, which
isn't cloneable. We therefore implement Clone on our library's error
type ... | diff --git a/ignore/src/lib.rs b/ignore/src/lib.rs
index a578487..b97e267 100644
--- a/ignore/src/lib.rs
+++ b/ignore/src/lib.rs
@@ -132,6 +132,44 @@ pub enum Error {
InvalidDefinition,
}
+impl Clone for Error {
+ fn clone(&self) -> Error {
+ match *self {
+ Error::Partial(ref errs) => Erro... | 2 | 41 | 2 |
58bd0c67da542cdeb369b3af90181b902c1c2c0d | Andrew Gallant | 2018-04-21T15:38:45 | deps: pin to atty 0.2.6
atty 0.2.7 (and 0.2.8) contain a regression in cygwin terminals that
prevents basic use of ripgrep, and is also the cause of the Windows CI
test failures. For now, we pin to 0.2.6, but a patch has been submitted
upstream: https://github.com/softprops/atty/pull/25 | diff --git a/Cargo.lock b/Cargo.lock
index 5694fe1..3e8c221 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -16,7 +16,7 @@ dependencies = [
[[package]]
name = "atty"
-version = "0.2.8"
+version = "0.2.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
dependencies = [
"libc 0.2.40 (registry+https:/... | 2 | 5 | 5 |
0345e089aab2c42ed69dc876afe2d55ada87683d | Andrew Gallant | 2018-04-15T12:45:05 | deps: update regex-syntax | diff --git a/Cargo.lock b/Cargo.lock
index 2dd480c..5694fe1 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -112,7 +112,7 @@ dependencies = [
"log 0.4.1 (registry+https://github.com/rust-lang/crates.io-index)",
"memchr 2.0.1 (registry+https://github.com/rust-lang/crates.io-index)",
"regex 0.2.10 (registry+https://git... | 1 | 4 | 4 |
c4dd927a1348f2252fc3a8dbb7f96f93dc171d51 | FlorentBecker | 2018-04-05T12:06:26 | ignore: add Clone/Debug for builders | diff --git a/globset/src/lib.rs b/globset/src/lib.rs
index 17292b0..eabed51 100644
--- a/globset/src/lib.rs
+++ b/globset/src/lib.rs
@@ -441,6 +441,7 @@ impl GlobSet {
/// GlobSetBuilder builds a group of patterns that can be used to
/// simultaneously match a file path.
+#[derive(Clone, Debug)]
pub struct GlobSet... | 2 | 2 | 0 |
34abed597fd119fbe6ca4fe0a820808d980f46c9 | Andrew Gallant | 2018-04-01T14:59:44 | deps: update all dependencies
In particular, we can now drop rand 0.3. | diff --git a/Cargo.lock b/Cargo.lock
index c848a4a..2dd480c 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -19,7 +19,7 @@ name = "atty"
version = "0.2.8"
source = "registry+https://github.com/rust-lang/crates.io-index"
dependencies = [
- "libc 0.2.39 (registry+https://github.com/rust-lang/crates.io-index)",
+ "libc 0.2... | 1 | 26 | 27 |
835600794fa567f00ef23942b0bf647c4aa667a6 | Andrew Gallant | 2018-03-26T21:28:21 | termcolor: release 0.3.6 | diff --git a/Cargo.lock b/Cargo.lock
index 8b9369b..c848a4a 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -247,7 +247,7 @@ dependencies = [
"num_cpus 1.8.0 (registry+https://github.com/rust-lang/crates.io-index)",
"regex 0.2.10 (registry+https://github.com/rust-lang/crates.io-index)",
"same-file 1.0.2 (registry+htt... | 2 | 3 | 3 |
07713fb5c5563243566677fae21095e610d459f8 | ehuss | 2018-03-26T20:42:48 | termcolor: fix bold + intense colors in Win 10
There is an issue with the Windows 10 console where if you issue the bold
escape sequence after one of the extended foreground colors, it overrides the
color. This happens in termcolor if you have bold, intense, and color set.
The workaround is to issue the bold seque... | diff --git a/termcolor/src/lib.rs b/termcolor/src/lib.rs
index 8182589..4e4b086 100644
--- a/termcolor/src/lib.rs
+++ b/termcolor/src/lib.rs
@@ -971,18 +971,18 @@ impl<W: io::Write> WriteColor for Ansi<W> {
fn set_color(&mut self, spec: &ColorSpec) -> io::Result<()> {
self.reset()?;
- if let Some... | 1 | 6 | 6 |
d7c9323a689239ac8b29baba63b1c3a26e12afda | Dezhi “Andy” Fang | 2018-03-17T23:33:34 | deps: update regex
This fixes build failures on latest nightly with SIMD features. | diff --git a/Cargo.lock b/Cargo.lock
index 9aed6a4..8b9369b 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -102,7 +102,7 @@ dependencies = [
"glob 0.2.11 (registry+https://github.com/rust-lang/crates.io-index)",
"log 0.4.1 (registry+https://github.com/rust-lang/crates.io-index)",
"memchr 2.0.1 (registry+https://gith... | 2 | 7 | 7 |
b7d29d126f82b55c7804a0ed352cc184b69ffdaf | Andrew Gallant | 2018-03-14T02:36:02 | deps: update clap, atty, libc
Nothing to see here.
Note that we continue to refrain to update tempdir, which means we are
still bringing in rand 0.4 and rand 0.3. Updating tempdir brings in an
old version of remove_dir_all, which in turn brings in winapi 0.2. No
thanks. | diff --git a/Cargo.lock b/Cargo.lock
index 4fe02d2..9aed6a4 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -8,15 +8,18 @@ dependencies = [
[[package]]
name = "ansi_term"
-version = "0.10.2"
+version = "0.11.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
+dependencies = [
+ "winapi 0.3.4 (registry... | 1 | 23 | 20 |
11a8f0eaf0f661c5b20c20fa2399314905d84fc1 | Andrew Gallant | 2018-03-10T15:34:35 | args: treat --count --only-matching as --count-matches
Namely, when ripgrep is asked to count things and is also asked to print
every match on its own line, then we should just automatically count the
matches and not the lines. This is a departure from how GNU grep behaves,
but there is a compelling argument to be mad... | diff --git a/src/app.rs b/src/app.rs
index 9d1d734..bfa2c70 100644
--- a/src/app.rs
+++ b/src/app.rs
@@ -784,7 +784,8 @@ If only one file is given to ripgrep, then only the count is printed if there
is a match. The --with-filename flag can be used to force printing the file
path in this case.
-This overrides the --... | 3 | 19 | 4 |
96f73293c0b734d91b55ad1e6940da0f706eed65 | Balaji Sivaraman | 2018-02-20T15:30:02 | cleanup: rename match_count to match_line_count | diff --git a/src/main.rs b/src/main.rs
index b3b192c..bc06481 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -88,13 +88,13 @@ fn run_parallel(args: &Arc<Args>) -> Result<u64> {
let bufwtr = Arc::new(args.buffer_writer());
let quiet_matched = args.quiet_matched();
let paths_searched = Arc::new(AtomicUsize:... | 3 | 32 | 32 |
91d0756f62790356012d692a7b340df92b54beac | Brian Malehorn | 2018-02-23T07:15:16 | ignore: support backslash escaping
Use the new `Globset::backslash_escape` knob to conform to git behavior:
`\` will escape the following character. For example, the pattern `\*`
will match a file literally named `*`.
Also tweak a test in ripgrep that was relying on this incorrect
behavior.
Closes #526, Closes #811 | diff --git a/ignore/src/gitignore.rs b/ignore/src/gitignore.rs
index 7e7233d..83392e1 100644
--- a/ignore/src/gitignore.rs
+++ b/ignore/src/gitignore.rs
@@ -477,6 +477,7 @@ impl GitignoreBuilder {
GlobBuilder::new(&glob.actual)
.literal_separator(literal_separator)
.case_i... | 2 | 6 | 5 |
54256515b49595a2ac4c2b218e4ddbb5a4920d9b | Andrew Gallant | 2018-03-10T14:04:01 | globset: make ErrorKind enum extensible
This commit makes the ErrorKind enum extensible by adding a
__Nonexhaustive variant. Callers should use this as a hint that
exhaustive case analysis isn't possible in a stable way since new
variants may be added in the future without a semver bump. | diff --git a/globset/src/lib.rs b/globset/src/lib.rs
index fb95ce7..17292b0 100644
--- a/globset/src/lib.rs
+++ b/globset/src/lib.rs
@@ -163,6 +163,13 @@ pub enum ErrorKind {
DanglingEscape,
/// An error associated with parsing or compiling a regex.
Regex(String),
+ /// Hints that destructuring should... | 1 | 9 | 0 |
e2516ed0957b10c0a2d49e5cc402c44f04f30a43 | Brian Malehorn | 2018-02-23T07:13:36 | globset: support backslash escaping
From `man 7 glob`:
One can remove the special meaning of '?', '*' and '[' by preceding
them by a backslash, or, in case this is part of a shell command
line, enclosing them in quotes.
Conform to glob / fnmatch / git implementations by making `\` escape the
following ch... | diff --git a/globset/src/glob.rs b/globset/src/glob.rs
index 0bdb9b4..062f5a6 100644
--- a/globset/src/glob.rs
+++ b/globset/src/glob.rs
@@ -187,13 +187,26 @@ pub struct GlobBuilder<'a> {
opts: GlobOptions,
}
-#[derive(Clone, Copy, Debug, Default, Eq, Hash, PartialEq)]
+#[derive(Clone, Copy, Debug, Eq, Hash, Pa... | 2 | 131 | 35 |
dbf6f15625dfa395cdea2675b2a7c24e743a1197 | Andrew Gallant | 2018-03-10T13:12:24 | mmap: handle ENOMEM error
This commit causes a memory map strategy to fall back to a file backed
strategy if the mmap call fails with an `ENOMEM` error.
Fixes #852 | diff --git a/src/worker.rs b/src/worker.rs
index eee7c67..952a334 100644
--- a/src/worker.rs
+++ b/src/worker.rs
@@ -341,14 +341,17 @@ impl Worker {
#[cfg(unix)]
fn mmap(&self, file: &File) -> Result<Option<Mmap>> {
- use libc::{ENODEV, EOVERFLOW};
+ use libc::{EOVERFLOW, ENODEV, ENOMEM};
... | 1 | 5 | 2 |
a6d09b2d4292fe2b2123025f7bcf223b46856fbb | Andrew Gallant | 2018-02-21T01:16:57 | deps: update to clap 2.30.0 | diff --git a/Cargo.lock b/Cargo.lock
index 7210868..8a8a673 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -41,7 +41,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
[[package]]
name = "clap"
-version = "2.29.4"
+version = "2.30.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
... | 1 | 3 | 3 |
ab1b877c205c0920b41773bf0267c0f016d04a51 | Andrew Gallant | 2018-02-21T01:15:08 | termcolor: release 0.3.5 | diff --git a/Cargo.lock b/Cargo.lock
index 1031cda..7210868 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -242,7 +242,7 @@ dependencies = [
"num_cpus 1.8.0 (registry+https://github.com/rust-lang/crates.io-index)",
"regex 0.2.6 (registry+https://github.com/rust-lang/crates.io-index)",
"same-file 1.0.2 (registry+http... | 2 | 3 | 3 |
2b5c4888146eebf1cee4c63307e9bedbdda79671 | Andrew Gallant | 2018-02-21T01:13:56 | ignore: release 0.4.1 | diff --git a/Cargo.lock b/Cargo.lock
index 75a848f..1031cda 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -114,7 +114,7 @@ dependencies = [
[[package]]
name = "ignore"
-version = "0.4.0"
+version = "0.4.1"
dependencies = [
"crossbeam 0.3.2 (registry+https://github.com/rust-lang/crates.io-index)",
"globset 0.3.0"... | 2 | 3 | 3 |
fe9be658f410d2e35c1cfe236a338f95aa03a724 | Andrew Gallant | 2018-02-21T00:46:47 | doc: omit revision when it isn't available
If the revision is empty, then we shouldn't show the `(rev )` text in
the output of `rg --version`.
Fixes #789 | diff --git a/build.rs b/build.rs
index 81fb487..b7f26f1 100644
--- a/build.rs
+++ b/build.rs
@@ -58,8 +58,13 @@ fn git_revision_hash() -> Option<String> {
let result = process::Command::new("git")
.args(&["rev-parse", "--short=10", "HEAD"])
.output();
- result.ok().map(|output| {
- Stri... | 1 | 7 | 2 |
d65966efbca5cfe2afdc6930e868d02e53591a43 | Andrew Gallant | 2018-02-21T00:32:58 | ignore: fix performance regression on Windows
This commit fixes a performance regression in Windows that resulted from
fallout from fixing #705. In particular, we introduced an additional
stat call for every single directory entry, which can be quite
disastrous for performance.
There is a corresponding companion PR t... | diff --git a/Cargo.lock b/Cargo.lock
index 3473f4d..75a848f 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -125,7 +125,7 @@ dependencies = [
"same-file 1.0.2 (registry+https://github.com/rust-lang/crates.io-index)",
"tempdir 0.3.5 (registry+https://github.com/rust-lang/crates.io-index)",
"thread_local 0.3.5 (registr... | 2 | 42 | 11 |
597bf04a56d43aa9c0eb0f8fbb90c9d51c53656c | Markus Westerlind | 2018-02-20T12:13:37 | termcolor: add ?Sized bound for &mut T impl | diff --git a/termcolor/src/lib.rs b/termcolor/src/lib.rs
index 7b90851..8182589 100644
--- a/termcolor/src/lib.rs
+++ b/termcolor/src/lib.rs
@@ -104,7 +104,7 @@ pub trait WriteColor: io::Write {
fn reset(&mut self) -> io::Result<()>;
}
-impl<'a, T: WriteColor> WriteColor for &'a mut T {
+impl<'a, T: ?Sized + Wr... | 1 | 1 | 1 |
c78ab9e66970803e17a688990e3c30722d9c97cc | Balaji Sivaraman | 2018-02-20T12:11:25 | termcolor: improve "intense" docs
Fixes #797 | diff --git a/termcolor/src/lib.rs b/termcolor/src/lib.rs
index f1c36cb..7b90851 100644
--- a/termcolor/src/lib.rs
+++ b/termcolor/src/lib.rs
@@ -1269,9 +1269,23 @@ impl ColorSpec {
}
/// Get whether this is intense or not.
+ ///
+ /// On Unix-like systems, this will output the ANSI escape sequence
+ ... | 1 | 14 | 0 |
f3a9ced82c61d9b388c6e688c9522ce952928d4d | Andrey Kolomoets | 2018-02-20T01:59:15 | types: add csv | diff --git a/ignore/src/types.rs b/ignore/src/types.rs
index cd5f9ec..d021df3 100644
--- a/ignore/src/types.rs
+++ b/ignore/src/types.rs
@@ -122,6 +122,7 @@ const DEFAULT_TYPES: &'static [(&'static str, &'static [&'static str])] = &[
("csharp", &["*.cs"]),
("cshtml", &["*.cshtml"]),
("css", &["*.css", "*... | 1 | 1 | 0 |
18f549d289b95b0de9e0f7b6c7d880b7752ea04d | Andrew Gallant | 2018-02-20T01:50:46 | ignore: fix symlink following on Windows
This commit fixes a bug where symlinks were always being followed on
Windows, even if the user did not request it. This only impacts the
parallel iterator.
This is a regression from the fallout of fixing #705.
Fixes #824 | diff --git a/ignore/src/walk.rs b/ignore/src/walk.rs
index e43aa45..6a260f8 100644
--- a/ignore/src/walk.rs
+++ b/ignore/src/walk.rs
@@ -1026,6 +1026,11 @@ impl Work {
self.dent.is_dir()
}
+ /// Returns true if and only if this work item is a symlink.
+ fn is_symlink(&self) -> bool {
+ self... | 1 | 6 | 1 |
c749b604dc2276cf64c792de742aa34ea9fbadec | Cosmin Lehene | 2018-02-18T22:53:10 | doc: clarify --ignore-file flag
Fixes #684 | diff --git a/src/app.rs b/src/app.rs
index 16356d7..327e9bb 100644
--- a/src/app.rs
+++ b/src/app.rs
@@ -1000,12 +1000,12 @@ This flag overrides -s/--case-sensitive and -S/--smart-case.
fn flag_ignore_file(args: &mut Vec<RGArg>) {
const SHORT: &str = "Specify additional ignore files.";
const LONG: &str = lon... | 1 | 6 | 6 |
9b7f420faa7fbf21db07afbdeadb0828f6752d2f | Uwe Dauernheim | 2018-02-17T13:24:31 | doc: fix files-with-matches typo | diff --git a/src/app.rs b/src/app.rs
index 1533aea..16356d7 100644
--- a/src/app.rs
+++ b/src/app.rs
@@ -848,7 +848,7 @@ fn flag_files_with_matches(args: &mut Vec<RGArg>) {
const LONG: &str = long!("\
Only print the paths with at least one match.
-This overrides --file-without-match.
+This overrides --files-wit... | 1 | 1 | 1 |
361698b90a6b31feac78ac2f16082342f750a1e1 | Andrew Gallant | 2018-02-14T23:15:17 | ignore: fix improper hidden filtering
This commit fixes a bug where `rg --hidden .` would behave differently
with respect to ignore filtering than `rg --hidden ./`. In particular,
this was due to a bug where the directory name `.` caused the leading
`.` in a hidden directory to get stripped, which in turn caused the
i... | diff --git a/ignore/src/gitignore.rs b/ignore/src/gitignore.rs
index a21afa5..7e7233d 100644
--- a/ignore/src/gitignore.rs
+++ b/ignore/src/gitignore.rs
@@ -66,6 +66,12 @@ impl Glob {
pub fn is_only_dir(&self) -> bool {
self.is_only_dir
}
+
+ /// Returns true if and only if this glob has a `**/` p... | 2 | 30 | 2 |
b71a110ccf1c9cfe5f4c447cc3878a2e45ed7b8f | David Peter | 2018-02-14T11:53:26 | ignore: fix custom ignore name bug
This commit fixes a bug in the handling of custom gitignore file names.
Previously, the directory walker would check for whether there were any
ignore rules present, but this check didn't incorporate the custom gitignore
rules. At a high level, this permits custom gitignore names ... | diff --git a/ignore/src/dir.rs b/ignore/src/dir.rs
index 923d574..77ee6ad 100644
--- a/ignore/src/dir.rs
+++ b/ignore/src/dir.rs
@@ -73,13 +73,6 @@ struct IgnoreOptions {
git_exclude: bool,
}
-impl IgnoreOptions {
- /// Returns true if at least one type of ignore rules should be matched.
- fn has_any_igno... | 2 | 30 | 8 |
5c1af3c25dd1281ff3e8bd6cb13be9a2bb7a2e38 | unsignedint | 2018-02-13T12:32:16 | types: add VHDL | diff --git a/ignore/src/types.rs b/ignore/src/types.rs
index a9a9687..cd5f9ec 100644
--- a/ignore/src/types.rs
+++ b/ignore/src/types.rs
@@ -274,6 +274,7 @@ const DEFAULT_TYPES: &'static [(&'static str, &'static [&'static str])] = &[
("twig", &["*.twig"]),
("vala", &["*.vala"]),
("vb", &["*.vb"]),
+ (... | 1 | 1 | 0 |
23d1b91eaddbfb886a3a99d615f49551cd35cb6c | Andrew Gallant | 2018-02-12T01:22:22 | release: 0.8.0 | diff --git a/Cargo.lock b/Cargo.lock
index 3e6d91d..3473f4d 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -225,7 +225,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
[[package]]
name = "ripgrep"
-version = "0.7.1"
+version = "0.8.0"
dependencies = [
"atty 0.2.6 (registry+https://github.com/ru... | 2 | 2 | 2 |
56341973ee969d14dc29e537d71edc09902ac495 | Andrew Gallant | 2018-02-11T18:42:59 | ignore: release 0.4.0 | diff --git a/Cargo.lock b/Cargo.lock
index 004062c..3e6d91d 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -114,7 +114,7 @@ dependencies = [
[[package]]
name = "ignore"
-version = "0.3.1"
+version = "0.4.0"
dependencies = [
"crossbeam 0.3.2 (registry+https://github.com/rust-lang/crates.io-index)",
"globset 0.3.0"... | 3 | 4 | 4 |
a431160d4c541087ff0f810ec59bca49b1c910ed | Andrew Gallant | 2018-02-11T18:41:36 | globset: release 0.3.0 | diff --git a/Cargo.lock b/Cargo.lock
index f852d44..004062c 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -92,7 +92,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
[[package]]
name = "globset"
-version = "0.2.1"
+version = "0.3.0"
dependencies = [
"aho-corasick 0.6.4 (registry+https://github.... | 4 | 6 | 6 |
5d15f49f0c5ac3d74dabc82a5bd4032b79b2aba4 | Andrew Gallant | 2018-02-11T18:39:12 | termcolor: release 0.3.4 | diff --git a/Cargo.lock b/Cargo.lock
index b57c1ae..f852d44 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -242,7 +242,7 @@ dependencies = [
"num_cpus 1.8.0 (registry+https://github.com/rust-lang/crates.io-index)",
"regex 0.2.6 (registry+https://github.com/rust-lang/crates.io-index)",
"same-file 1.0.2 (registry+http... | 3 | 5 | 5 |
7718ee362e405f709886e24d62e352dd361a4dd6 | Andrew Gallant | 2018-02-11T18:38:00 | wincolor: release 0.1.6 | diff --git a/Cargo.lock b/Cargo.lock
index 2a87526..b57c1ae 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -276,7 +276,7 @@ dependencies = [
name = "termcolor"
version = "0.3.3"
dependencies = [
- "wincolor 0.1.5",
+ "wincolor 0.1.6",
]
[[package]]
@@ -359,7 +359,7 @@ source = "registry+https://github.com/rust-lang... | 2 | 3 | 3 |
739f8f596b99ccce90c733c7eff485967703a2b9 | Andrew Gallant | 2018-02-11T18:35:54 | grep: release 0.1.8 | diff --git a/Cargo.lock b/Cargo.lock
index 14a4153..2a87526 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -104,7 +104,7 @@ dependencies = [
[[package]]
name = "grep"
-version = "0.1.7"
+version = "0.1.8"
dependencies = [
"log 0.4.1 (registry+https://github.com/rust-lang/crates.io-index)",
"memchr 2.0.1 (registry... | 3 | 4 | 4 |
e818d7529bc862bf08951af7bef231e0791982d3 | Andrew Gallant | 2018-02-11T18:31:41 | deps: update several dependencies
We specifically avoid updating tempdir since it seems to have grown a
dependency on `remove_dir_all`, which in turn still uses winapi 0.2. | diff --git a/Cargo.lock b/Cargo.lock
index 6b2802c..14a4153 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -16,9 +16,9 @@ name = "atty"
version = "0.2.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
dependencies = [
- "libc 0.2.34 (registry+https://github.com/rust-lang/crates.io-index)",
+ "libc 0.2... | 1 | 57 | 45 |
a2a7f58aa65f19db8ff19587a29d626c128b63ec | Andrew Gallant | 2018-02-11T03:48:46 | doc: fix asciidoc->man formatting | diff --git a/src/app.rs b/src/app.rs
index 01d18ac..1533aea 100644
--- a/src/app.rs
+++ b/src/app.rs
@@ -694,7 +694,7 @@ the background color for line numbers to yellow:
rg --colors 'match:fg:magenta' --colors 'line:bg:yellow' foo.
-Extended colors can be used for {value} when the terminal supports ANSI color
... | 1 | 1 | 1 |
96ee4482cde73eccf02db8d857c8cd2306e5a6fa | Andrew Gallant | 2018-02-11T02:37:13 | globset: remove use of unsafe
This commit removes, in retrospect, a silly use of `unsafe`. In particular,
to extract a file name extension (distinct from how `std` implements it),
we were transmuting an OsStr to its underlying WTF-8 byte representation
and then searching that. This required `unsafe` and relied on an
u... | diff --git a/globset/src/glob.rs b/globset/src/glob.rs
index 05467d5..0bdb9b4 100644
--- a/globset/src/glob.rs
+++ b/globset/src/glob.rs
@@ -1,4 +1,3 @@
-use std::ffi::{OsStr, OsString};
use std::fmt;
use std::hash;
use std::iter;
@@ -28,7 +27,7 @@ pub enum MatchStrategy {
BasenameLiteral(String),
/// A pa... | 3 | 54 | 60 |
2d68054b1da6ba7515118bbe98c80e4c5330cad5 | Andrew Gallant | 2018-02-10T23:42:35 | termcolor: support ANSI in Windows terminals
This commit uses the new virtual terminal processing feature in Windows 10
to enable the use of ANSI escape codes to color ripgrep's output. This
technique is preferred over the console APIs because it seems like where
the future is heading, but also because it avoids needi... | diff --git a/termcolor/src/lib.rs b/termcolor/src/lib.rs
index 72b276f..13b9fe2 100644
--- a/termcolor/src/lib.rs
+++ b/termcolor/src/lib.rs
@@ -239,7 +239,7 @@ impl io::Write for IoStandardStream {
}
}
-/// Same rigmarole for the locked variants of the standard streams.
+// Same rigmarole for the locked varian... | 2 | 30 | 13 |
65a63788bc2e785b879493725283d1a22e314bf2 | Andrew Gallant | 2018-02-10T23:41:07 | wincolor: add support for enabling VT100
This commit adds a new method to the Console type which permits toggling
the VIRTUAL_TERMINAL_PROCESSING mode on a console. Specifically, this
enables the use of ANSI escape sequences for color in Windows terminals. | diff --git a/wincolor/Cargo.toml b/wincolor/Cargo.toml
index af509eb..29aa757 100644
--- a/wincolor/Cargo.toml
+++ b/wincolor/Cargo.toml
@@ -16,5 +16,6 @@ license = "Unlicense/MIT"
name = "wincolor"
bench = false
-[dependencies]
-winapi = { version = "0.3", features = ["minwindef", "processenv", "winbase", "wincon"... | 2 | 33 | 2 |
7e5589f07d8f3f677d530412704b72d19aff5015 | Andrew Gallant | 2018-02-10T18:02:48 | termcolor: permit hex colors
This commit adds support for specifying Ansi256 or RGB colors using
hexadecimal notation. | diff --git a/src/app.rs b/src/app.rs
index f2f214d..e293e9e 100644
--- a/src/app.rs
+++ b/src/app.rs
@@ -696,13 +696,18 @@ the background color for line numbers to yellow:
Extended colors can be used for {value} when the terminal supports ANSI color
sequences. These are specified as either 'x' (256-color) or 'x,x,x... | 2 | 94 | 53 |
ca3e0e8a498a0cb50960f32e9353d99b853c37a8 | Andrew Gallant | 2018-02-07T15:38:52 | doc: clarify --files-without-match
This adds a couple common keywords to the documentation.
Fixes #779 | diff --git a/src/app.rs b/src/app.rs
index e757c47..0e0a7a7 100644
--- a/src/app.rs
+++ b/src/app.rs
@@ -856,7 +856,8 @@ This overrides --file-without-match.
fn flag_files_without_match(args: &mut Vec<RGArg>) {
const SHORT: &str = "Only print the paths that contain zero matches.";
const LONG: &str = long!("\... | 1 | 2 | 1 |
8e93fa0e7fecf375e03d398660eb0e9ba7cf3473 | Andrew Gallant | 2018-02-08T23:25:55 | deps: update regex to 0.2.6
This regex update disabled the Tuned Boyer-Moore literal searcher which
has a bug in it that isn't straight-forward to fix. We bring that update
into ripgrep with this commit.
Fixes #780, Fixes #781 | diff --git a/Cargo.lock b/Cargo.lock
index 3acd8c3..6b2802c 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -99,7 +99,7 @@ dependencies = [
"glob 0.2.11 (registry+https://github.com/rust-lang/crates.io-index)",
"log 0.4.1 (registry+https://github.com/rust-lang/crates.io-index)",
"memchr 2.0.1 (registry+https://github... | 1 | 6 | 6 |
7f5c07434be92103b5bf7e216b9c7494aed2d8cb | Andrew Gallant | 2018-02-06T23:28:39 | argv: add several hidden flags
This adds hidden counter-flags for the following:
-L/--follow [--no-follow]
--hidden [--no-hidden]
--no-ignore [--ignore]
--no-ignore-parent [--ignore-parent]
--no-ignore-vcs [--ignore-vcs]
--no-messages [--messages]
--search-zip [--no-search-zip]
--sort-files [--no-sort... | diff --git a/src/app.rs b/src/app.rs
index 54787b8..e757c47 100644
--- a/src/app.rs
+++ b/src/app.rs
@@ -884,9 +884,17 @@ fn flag_follow(args: &mut Vec<RGArg>) {
When this flag is enabled, ripgrep will follow symbolic links while traversing
directories. This is disabled by default. Note that ripgrep will check for
s... | 1 | 81 | 9 |
874f0b96a6c12658bc532c74306fb3391c64289a | Andrew Gallant | 2018-02-06T23:26:23 | argv: support hidden flags
This commit adds support for hidden flags. The purpose of hidden flags
is for things that end users likely won't need unless they have a
configuration file that disables ripgrep's defaults. These flags will
provide a way to re-enable ripgrep's defaults. | diff --git a/build.rs b/build.rs
index 93c2585..9fc3ba5 100644
--- a/build.rs
+++ b/build.rs
@@ -99,6 +99,9 @@ fn formatted_options() -> io::Result<String> {
let mut formatted = vec![];
for arg in args {
+ if arg.hidden {
+ continue;
+ }
// ripgrep only has two positional a... | 2 | 25 | 0 |
706323ad8f2600db7d46482a7d95972b1416c0eb | Behnam Esfahbod | 2018-02-05T02:07:55 | globset: add more tests for single-asterisk pattern
This adds a few tests that check for bugs reported here:
https://github.com/rust-lang/cargo/issues/4268
The bugs reported in the aforementioned issue are probably caused by not
enabling the `literal_separator` option in `GlobBuilder`. Enabling that
in the tests unde... | diff --git a/globset/src/glob.rs b/globset/src/glob.rs
index ff7b74a..05467d5 100644
--- a/globset/src/glob.rs
+++ b/globset/src/glob.rs
@@ -1155,6 +1155,7 @@ mod tests {
matches!(matchrec22, ".*/**", ".abc/abc");
matches!(matchrec23, "foo/**", "foo");
matches!(matchrec24, "**/foo/bar", "foo/bar");
+ ... | 1 | 8 | 0 |
224c112e0509ab2aeb28de05efbbce9486a55eff | Andrew Gallant | 2018-02-04T16:41:06 | argv: tweak the meaning of zero
This commit makes a small tweak to the --max-columns flag. Namely, if
the value of the flag is 0, then ripgrep behaves as-if the flag were
absent.
This is useful in the context of ripgrep reading configuration from the
environment. For example, an end user might set --max-columns=150, ... | diff --git a/src/app.rs b/src/app.rs
index 05f411a..3591dc2 100644
--- a/src/app.rs
+++ b/src/app.rs
@@ -1034,6 +1034,8 @@ fn flag_max_columns(args: &mut Vec<RGArg>) {
const LONG: &str = long!("\
Don't print lines longer than this limit in bytes. Longer lines are omitted,
and only the number of matches in that l... | 2 | 22 | 2 |
8cb5833ef9fd6c4c351d10a3e950339fa89adf49 | Andrew Gallant | 2018-02-06T00:22:44 | argv: update clap to 2.29.4
We use the new AppSettings::AllArgsOverrideSelf to permit all flags to
be specified multiple times. This removes the need for our previous
work-around where we would enable `multiple` for every flag and then
just extract the last value when consuming clap's matches.
We also add a couple re... | diff --git a/Cargo.lock b/Cargo.lock
index d50280f..3acd8c3 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -41,13 +41,13 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
[[package]]
name = "clap"
-version = "2.29.2"
+version = "2.29.4"
source = "registry+https://github.com/rust-lang/crates.io-index... | 5 | 57 | 17 |
85cd3f0a6e72a1d75c37be7b8ee4677a6bcc3f3d | Kevin K | 2018-02-05T16:37:17 | argv: fix PATTERN typo
When referencing the PATTERN positional argument,
we should use `pattern` and not `PATTERN`. The former
is the clap identifier name while the latter is the argument
value name. | diff --git a/src/app.rs b/src/app.rs
index 16cd3d8..ba14189 100644
--- a/src/app.rs
+++ b/src/app.rs
@@ -1468,7 +1468,7 @@ Show all supported file types and their corresponding globs.
.help(SHORT).long_help(LONG)
// This also technically conflicts with PATTERN, but the first file
// path will... | 1 | 1 | 1 |
d83bab4d3f29a0176a20ea004c2cba44058d4210 | Andrew Gallant | 2018-02-03T19:31:40 | argv: permit repeated flags
This commit builds on the previous argv refactor by being more principled
about how we declared our flags. In particular, we now require that every
clap argument is one of three things: a positional argument, a switch or
a flag that accepts exactly one value. The latter two are always permi... | diff --git a/src/app.rs b/src/app.rs
index 6fd31a5..5fd8065 100644
--- a/src/app.rs
+++ b/src/app.rs
@@ -113,12 +113,6 @@ struct RGArg {
/// The name of this argument. This is always present and is the name
/// used in the code to find the value of an argument at runtime.
name: &'static str,
- /// The... | 2 | 336 | 210 |
c8e755f11f31b6da04329cdc7433747bba70150f | Andrew Gallant | 2018-02-04T02:50:30 | deps: remove vec-map feature from clap
This removes the vec-map feature from clap. clap's README claims that
vec-map provides a small performance benefit, but I could observe any in
ripgrep workloads.
The benefit here is that it drops a dependency.
Amazingly, this drops whole release build times for ripgrep from 68s... | diff --git a/Cargo.lock b/Cargo.lock
index d9d5d3c..d50280f 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -41,7 +41,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
[[package]]
name = "clap"
-version = "2.29.0"
+version = "2.29.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
... | 2 | 13 | 12 |
68dac7c4b0743a6a08f89f915957e23b8e3f3441 | Andrew Gallant | 2018-02-03T15:41:36 | build: add git hash
This commit makes the git hash ripgrep was built with available for use
in the version string.
We also do a few minor touchups in build.rs and src/app.rs. | diff --git a/build.rs b/build.rs
index 3c16b53..01b3d18 100644
--- a/build.rs
+++ b/build.rs
@@ -5,6 +5,7 @@ extern crate lazy_static;
use std::env;
use std::fs;
+use std::process;
use clap::Shell;
@@ -13,14 +14,34 @@ use clap::Shell;
mod app;
fn main() {
+ // OUT_DIR is set by Cargo and it's where any ... | 2 | 54 | 19 |
35350470942920574e58170c1ab9d419f68af6da | Andrew Gallant | 2018-02-04T02:31:28 | logger: drop env_logger
This commit updates the `log` crate to 0.4 and drops the dependency on
env_logger. In particular, the latest version of env_logger brings in
additional non-optional dependencies such as chrono that I don't think is
worth including into ripgrep.
It turns out ripgrep doesn't need any fancy loggi... | diff --git a/Cargo.lock b/Cargo.lock
index a5bb387..d9d5d3c 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -67,14 +67,6 @@ dependencies = [
"simd 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)",
]
-[[package]]
-name = "env_logger"
-version = "0.4.3"
-source = "registry+https://github.com/rust-lang/crat... | 8 | 74 | 38 |
fe0025549418822c1711886bf136660845e8f433 | Andrew Gallant | 2018-02-04T01:38:03 | deps: bump wincolor | diff --git a/Cargo.lock b/Cargo.lock
index 6eca6e4..a5bb387 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -283,7 +283,7 @@ dependencies = [
name = "termcolor"
version = "0.3.3"
dependencies = [
- "wincolor 0.1.4",
+ "wincolor 0.1.5",
]
[[package]]
@@ -371,7 +371,7 @@ source = "registry+https://github.com/rust-lang... | 1 | 2 | 2 |
07c837e7400516bb4f1996d0405f59fc07596a74 | Andrew Gallant | 2018-02-04T01:34:08 | wincolor-0.1.5 | diff --git a/wincolor/Cargo.toml b/wincolor/Cargo.toml
index b686082..af509eb 100644
--- a/wincolor/Cargo.toml
+++ b/wincolor/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "wincolor"
-version = "0.1.4" #:version
+version = "0.1.5" #:version
authors = ["Andrew Gallant <jamslam@gmail.com>"]
description = """
A simpl... | 1 | 1 | 1 |
c7fc916e6b10b3c783e7c08a79327f346f5d5873 | Andrew Gallant | 2018-02-02T03:51:34 | deps: bump walkdir (again)
walkdir 2.1.2 introduced a subtle bug on Windows when dealing with
symlinks. We update to the latest to get the fix. | diff --git a/Cargo.lock b/Cargo.lock
index c9291fa..6eca6e4 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -134,7 +134,7 @@ dependencies = [
"same-file 1.0.1 (registry+https://github.com/rust-lang/crates.io-index)",
"tempdir 0.3.5 (registry+https://github.com/rust-lang/crates.io-index)",
"thread_local 0.3.5 (registr... | 1 | 3 | 3 |
e36b65a11a7fa72e4b43f89c71441884269f0522 | Andrew Gallant | 2018-02-02T02:11:02 | windows: fix OneDrive traversals
This commit fixes a bug on Windows where directory traversals were
completely broken when attempting to scan OneDrive directories that use
the "file on demand" strategy.
The specific problem was that Rust's standard library treats OneDrive
directories as reparse points instead of dire... | diff --git a/Cargo.lock b/Cargo.lock
index 13fbb69..c9291fa 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -134,7 +134,8 @@ dependencies = [
"same-file 1.0.1 (registry+https://github.com/rust-lang/crates.io-index)",
"tempdir 0.3.5 (registry+https://github.com/rust-lang/crates.io-index)",
"thread_local 0.3.5 (registr... | 7 | 192 | 19 |
11ad7ab204f415d6e3af35b9e8c8907092857266 | Andrew Gallant | 2018-02-01T22:09:06 | ignore/deps: update walkdir
This commit updates to the latest walkdir release, which fixes a bug on
Windows where ripgrep would panic if it was told to traverse a directory
while following symlinks *and* if opening one of those symlinks failed.
Fixes #633 | diff --git a/Cargo.lock b/Cargo.lock
index 95aef5f..13fbb69 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -134,7 +134,7 @@ dependencies = [
"same-file 1.0.1 (registry+https://github.com/rust-lang/crates.io-index)",
"tempdir 0.3.5 (registry+https://github.com/rust-lang/crates.io-index)",
"thread_local 0.3.5 (registr... | 1 | 3 | 3 |
93943793c314e0566ed57d7c0642c3b818c76c50 | Andrew Gallant | 2018-02-01T00:20:36 | worker: better error handling for memory maps
Previously, we would bail out of using memory maps if we could detect
ahead of time that opening a memory map would fail. The only case we
checked was whether the file size was 0 or not.
This is actually insufficient. The mmap call can return ENODEV errors
when a file doe... | diff --git a/src/main.rs b/src/main.rs
index f7407ea..7d39aa6 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -9,6 +9,7 @@ extern crate grep;
extern crate ignore;
#[macro_use]
extern crate lazy_static;
+extern crate libc;
#[macro_use]
extern crate log;
extern crate memchr;
@@ -339,7 +340,6 @@ fn eprint_nothing_sear... | 2 | 29 | 2 |
0fedaa7d28549ee0b534281acb18423ef3b3648c | Andrew Gallant | 2018-02-01T00:17:51 | style: remove eprintln macro
The eprintln! macro was added to Rust's standard library in Rust 1.19.0,
which is below ripgrep's minimum Rust version. Therefore, we can rely on
the standard library variant now. | diff --git a/src/main.rs b/src/main.rs
index ebcc401..f7407ea 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -35,13 +35,6 @@ macro_rules! errored {
}
}
-macro_rules! eprintln {
- ($($tt:tt)*) => {{
- use std::io::Write;
- let _ = writeln!(&mut ::std::io::stderr(), $($tt)*);
- }}
-}
-
mod app... | 1 | 0 | 7 |
e05023b4065c5a5589caddc53ad1599af6497197 | llogiq | 2018-01-30T21:34:30 | deps: update bytecount
This improves performance with current nightly rustc. | diff --git a/Cargo.lock b/Cargo.lock
index 9b80e47..95aef5f 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -28,7 +28,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
[[package]]
name = "bytecount"
-version = "0.3.0"
+version = "0.3.1"
source = "registry+https://github.com/rust-lang/crates.io-inde... | 2 | 4 | 4 |
a8543f798d5cd0ccfb038c2b80a640f02521c370 | Marc Tiehuis | 2017-04-14T00:08:53 | termcolor: add extended color support
This commit adds 256-color and 24-bit truecolor support to ripgrep.
This only provides output support on ANSI terminals. If the Windows
console is used for coloring, then 256-color and 24-bit color settings
are ignored. | diff --git a/src/app.rs b/src/app.rs
index 6bf2744..3133e1e 100644
--- a/src/app.rs
+++ b/src/app.rs
@@ -288,7 +288,16 @@ lazy_static! {
color settings for {type}.\n\nFor example, the following \
command will change the match color to magenta and the \
background color for l... | 2 | 260 | 22 |
ef9e17d28aee0d9259b26467102f0ce7e007156e | Andrew Gallant | 2018-01-29T22:09:01 | deps: bump memmap to 0.6.2
This removes the last dependency that required winapi 0.2. ripgrep now
only depends on winapi 0.3. | diff --git a/Cargo.lock b/Cargo.lock
index be583d3..d2c30bd 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -137,15 +137,6 @@ dependencies = [
"walkdir 2.0.1 (registry+https://github.com/rust-lang/crates.io-index)",
]
-[[package]]
-name = "kernel32-sys"
-version = "0.2.2"
-source = "registry+https://github.com/rust-la... | 1 | 4 | 27 |
3cb4d1337e9846c0518e3e2dfc4f7b007b16a288 | ptzz | 2018-01-29T21:06:05 | ignore: support custom file names
This commit adds support for ignore files with custom names. This
allows for application specific ignorefile names, e.g. using
`.fdignore` for `fd`.
See also: https://github.com/BurntSushi/ripgrep/issues/673
See also: https://github.com/sharkdp/fd/issues/156 | diff --git a/ignore/src/dir.rs b/ignore/src/dir.rs
index 6de6619..923d574 100644
--- a/ignore/src/dir.rs
+++ b/ignore/src/dir.rs
@@ -14,7 +14,7 @@
// well.
use std::collections::HashMap;
-use std::ffi::OsString;
+use std::ffi::{OsString, OsStr};
use std::path::{Path, PathBuf};
use std::sync::{Arc, RwLock};
@@ -... | 3 | 134 | 13 |
8514d4fbb45265c263c982d5107216eefb2017dc | kennytm | 2018-01-29T19:14:55 | termcolor: tweak reset escape
Write `Ansi::reset()` using `\x1b[0m` instead of `\x1b[m`.
This works around an AppVeyor bug: https://github.com/appveyor/ci/issues/1824 | diff --git a/termcolor/src/lib.rs b/termcolor/src/lib.rs
index bcb534a..94cc0bf 100644
--- a/termcolor/src/lib.rs
+++ b/termcolor/src/lib.rs
@@ -973,7 +973,7 @@ impl<W: io::Write> WriteColor for Ansi<W> {
}
fn reset(&mut self) -> io::Result<()> {
- self.write_str("\x1B[m")
+ self.write_str("\x... | 2 | 5 | 5 |
ed9150c9b460115fffce151f5119a1e0f94af575 | Michael Salihi | 2018-01-29T19:12:02 | types: add Smarty tpl
It is used by Prestashop CMS and more. | diff --git a/ignore/src/types.rs b/ignore/src/types.rs
index f5790a2..d231b57 100644
--- a/ignore/src/types.rs
+++ b/ignore/src/types.rs
@@ -245,6 +245,7 @@ const DEFAULT_TYPES: &'static [(&'static str, &'static [&'static str])] = &[
// Extensions
"*.bash", "*.csh", "*.ksh", "*.sh", "*.tcsh", "*.zsh",... | 1 | 1 | 0 |
51864c13fc329332b9ebcf2a7e45e7b6aadeedbd | dana | 2018-01-29T19:10:59 | ignore: fix handling of / in patterns
This commit makes handling of patterns containing a `/`
match actual git behaviour and the specification written
in `man gitignore`.
Fixes #761 | diff --git a/ignore/src/gitignore.rs b/ignore/src/gitignore.rs
index e7b0007..a21afa5 100644
--- a/ignore/src/gitignore.rs
+++ b/ignore/src/gitignore.rs
@@ -416,7 +416,6 @@ impl GitignoreBuilder {
is_only_dir: false,
};
let mut literal_separator = false;
- let has_slash = line.char... | 3 | 21 | 19 |
35f802166d1c5788e8c833f398d13b9c9e8cb360 | Arvid Gerstmann | 2018-01-17T13:49:01 | types: add gn type
This is for Google's new build system. | diff --git a/ignore/src/types.rs b/ignore/src/types.rs
index 5daa35e..f5790a2 100644
--- a/ignore/src/types.rs
+++ b/ignore/src/types.rs
@@ -135,6 +135,7 @@ const DEFAULT_TYPES: &'static [(&'static str, &'static [&'static str])] = &[
"*.f90", "*.F90", "*.f95", "*.F95",
]),
("fsharp", &["*.fs", "*.fsx... | 1 | 1 | 0 |
bba2d562929dd333af56b95e726a04a5188ab4d7 | Arvid Gerstmann | 2018-01-17T13:47:23 | types: add hxx to the cpp type | diff --git a/ignore/src/types.rs b/ignore/src/types.rs
index 1c16faa..5daa35e 100644
--- a/ignore/src/types.rs
+++ b/ignore/src/types.rs
@@ -114,7 +114,7 @@ const DEFAULT_TYPES: &'static [(&'static str, &'static [&'static str])] = &[
("config", &["*.cfg", "*.conf", "*.config", "*.ini"]),
("cpp", &[
"... | 1 | 1 | 1 |
012880914be0d9ec15945e5e2bb8f0f13316e8bf | Hendrik Sollich | 2018-01-13T23:42:04 | types: add webidl (*.webidl) | diff --git a/ignore/src/types.rs b/ignore/src/types.rs
index 0acebb9..1c16faa 100644
--- a/ignore/src/types.rs
+++ b/ignore/src/types.rs
@@ -272,7 +272,7 @@ const DEFAULT_TYPES: &'static [(&'static str, &'static [&'static str])] = &[
("vim", &["*.vim"]),
("vimscript", &["*.vim"]),
("wiki", &["*.mediawiki... | 1 | 1 | 1 |
832f5baf1af2326abcfb491ac20d5947525707f4 | Hendrik Sollich | 2018-01-13T00:48:50 | types: add webidl | diff --git a/ignore/src/types.rs b/ignore/src/types.rs
index 8d8d777..0acebb9 100644
--- a/ignore/src/types.rs
+++ b/ignore/src/types.rs
@@ -272,6 +272,7 @@ const DEFAULT_TYPES: &'static [(&'static str, &'static [&'static str])] = &[
("vim", &["*.vim"]),
("vimscript", &["*.vim"]),
("wiki", &["*.mediawiki... | 1 | 1 | 0 |
a6d3a959ebd4633e2d939e4455186ed4726c3bb0 | dana | 2018-01-13T00:35:46 | types: yarn.lock is not YAML
Fixes #747 | diff --git a/ignore/src/types.rs b/ignore/src/types.rs
index 0539958..8d8d777 100644
--- a/ignore/src/types.rs
+++ b/ignore/src/types.rs
@@ -274,7 +274,7 @@ const DEFAULT_TYPES: &'static [(&'static str, &'static [&'static str])] = &[
("wiki", &["*.mediawiki", "*.wiki"]),
("xml", &["*.xml", "*.xml.dist"]),
... | 1 | 1 | 1 |
ab2e8190e7a632523d80983663a9bf21e6d5c650 | Mridul Singhai | 2018-01-11T23:47:19 | types: add Apache avro | diff --git a/ignore/src/types.rs b/ignore/src/types.rs
index 124cfbe..0539958 100644
--- a/ignore/src/types.rs
+++ b/ignore/src/types.rs
@@ -100,6 +100,7 @@ const DEFAULT_TYPES: &'static [(&'static str, &'static [&'static str])] = &[
("agda", &["*.agda", "*.lagda"]),
("asciidoc", &["*.adoc", "*.asc", "*.ascii... | 1 | 1 | 0 |
74e96b498cfda0b4c37b0e1ebd7d89f70202fd6d | Eitan Adler | 2018-01-09T06:21:05 | Update types.rs | diff --git a/ignore/src/types.rs b/ignore/src/types.rs
index 433f213..124cfbe 100644
--- a/ignore/src/types.rs
+++ b/ignore/src/types.rs
@@ -190,7 +190,7 @@ const DEFAULT_TYPES: &'static [(&'static str, &'static [&'static str])] = &[
]),
("markdown", &["*.markdown", "*.md", "*.mdown", "*.mkdn"]),
("md", ... | 1 | 1 | 1 |
7e0fa1c6be2613a678de282bb67236aaf1c8bbc2 | Eitan Adler | 2018-01-09T06:20:35 | Add a type for man pages | diff --git a/ignore/src/types.rs b/ignore/src/types.rs
index 00a390e..433f213 100644
--- a/ignore/src/types.rs
+++ b/ignore/src/types.rs
@@ -190,6 +190,7 @@ const DEFAULT_TYPES: &'static [(&'static str, &'static [&'static str])] = &[
]),
("markdown", &["*.markdown", "*.md", "*.mdown", "*.mkdn"]),
("md", ... | 1 | 1 | 0 |
50616935a9784d9a6757ba0140f28ce20ccb52a6 | Igor Gnatenko | 2018-01-09T07:03:04 | deps: update bytecount to 0.3
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com> | diff --git a/Cargo.lock b/Cargo.lock
index e0ea01a..be583d3 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -28,7 +28,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
[[package]]
name = "bytecount"
-version = "0.2.0"
+version = "0.3.0"
source = "registry+https://github.com/rust-lang/crates.io-inde... | 2 | 4 | 4 |
fbc1e7fa18e45c3ec6a9a222adbe3b5f47778d9b | Stjepan Glavina | 2018-01-06T12:29:53 | Update crossbeam to 0.3.2 | diff --git a/Cargo.lock b/Cargo.lock
index ee7961d..e0ea01a 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -55,7 +55,7 @@ dependencies = [
[[package]]
name = "crossbeam"
-version = "0.3.0"
+version = "0.3.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
[[package]]
@@ -125,7 +125,7 @@ dependenci... | 1 | 3 | 3 |
14779ed0ea5d28aaa6c04dff3be77989f9fd2836 | Balaji Sivaraman | 2018-01-01T16:24:46 | ux: suggest --fixed-strings flag
If a regex syntax error occurs, then ripgrep will suggest
using the --fixed-strings flag.
Fixes #727 | diff --git a/src/args.rs b/src/args.rs
index 77cf8cc..f0f93cc 100644
--- a/src/args.rs
+++ b/src/args.rs
@@ -11,7 +11,7 @@ use std::sync::atomic::{AtomicBool, Ordering};
use clap;
use encoding_rs::Encoding;
use env_logger;
-use grep::{Grep, GrepBuilder};
+use grep::{Grep, GrepBuilder, Error as GrepError};
use log;
... | 2 | 21 | 2 |
5e73075ef5300fdec03f6c4685750788108b00f4 | Igor Gnatenko | 2017-11-30T16:51:06 | deps: bump lazy_static to 1 | diff --git a/Cargo.lock b/Cargo.lock
index ee6f440..ee7961d 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -127,7 +127,7 @@ version = "0.3.1"
dependencies = [
"crossbeam 0.3.0 (registry+https://github.com/rust-lang/crates.io-index)",
"globset 0.2.1",
- "lazy_static 0.2.11 (registry+https://github.com/rust-lang/crates... | 3 | 5 | 11 |
1b42c024891209957c51251a916b5184ab45afdc | Andrew Gallant | 2017-12-30T20:57:02 | deps: update same-file dep
The same-file update includes a migration to winapi 0.3. | diff --git a/Cargo.lock b/Cargo.lock
index c85e82c..ee6f440 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -131,7 +131,7 @@ dependencies = [
"log 0.3.9 (registry+https://github.com/rust-lang/crates.io-index)",
"memchr 2.0.1 (registry+https://github.com/rust-lang/crates.io-index)",
"regex 0.2.4 (registry+https://gith... | 1 | 6 | 7 |
0d03145293465042bbcd1e323906861c8b5ca18f | Steffen Butzer | 2017-12-29T22:53:18 | wincolor: migrate to winapi 0.3 | diff --git a/Cargo.lock b/Cargo.lock
index 25833d0..c85e82c 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -395,8 +395,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
name = "wincolor"
version = "0.1.4"
dependencies = [
- "kernel32-sys 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)"... | 4 | 28 | 32 |
f8162d2707d34c26e15325d1abe02a0d926fb845 | Andrew Gallant | 2017-12-30T20:48:25 | deps: update all deps | diff --git a/Cargo.lock b/Cargo.lock
index a77469c..25833d0 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -1,9 +1,9 @@
[[package]]
name = "aho-corasick"
-version = "0.6.3"
+version = "0.6.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
dependencies = [
- "memchr 1.0.2 (registry+https://github.com/... | 1 | 91 | 61 |
7dd1194a975721c49121f07644ebd0414cddbff5 | Andrew Gallant | 2017-12-30T20:46:55 | deps: update to latest regex crate
The regex update fixes the Rust nightly build failure by in turn updating
its simd dependency to 2.x.
The regex update also includes a literal optimization that uses Tuned
Boyer Moore.
Fixes #617 | diff --git a/Cargo.lock b/Cargo.lock
index bf03673..8a4d50a 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -27,12 +27,17 @@ name = "bitflags"
version = "0.9.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
+[[package]]
+name = "bitflags"
+version = "1.0.1"
+source = "registry+https://github.com/rust... | 2 | 61 | 18 |
a5855a5d733d42ba3913d78dd19083990d41ecf3 | Igor Gnatenko | 2017-12-30T21:06:16 | couple of trivial fixes to make clippy a bit more happy (#704)
clippy: fix a few lints
The fixes are:
* Use single quotes for single-character
* Use ticks in documentation when necessary.
* Just bow to clippy's wisdom. | diff --git a/src/search_stream.rs b/src/search_stream.rs
index b2b49d2..4e16712 100644
--- a/src/search_stream.rs
+++ b/src/search_stream.rs
@@ -327,16 +327,17 @@ impl<'a, R: io::Read, W: WriteColor> Searcher<'a, R, W> {
#[inline(always)]
fn fill(&mut self) -> Result<bool, Error> {
- let mut keep = s... | 4 | 10 | 9 |
03b0d832edb821d2baed81e04fc82a0699935777 | flip111 | 2017-12-30T21:04:21 | Update app.rs (#707)
docs: clarify --ignore-file
Fixes #684 | diff --git a/src/app.rs b/src/app.rs
index 9963963..7a10b35 100644
--- a/src/app.rs
+++ b/src/app.rs
@@ -422,12 +422,15 @@ lazy_static! {
and directories are skipped.");
doc!(h, "ignore-file",
"Specify additional ignore files.",
- "Specify additional ignore files for fi... | 1 | 9 | 6 |
86c890bcecf885619565ce949ddb9099d55dd43c | dana | 2017-12-18T20:56:01 | Improve detection of upper-case characters by smart-case feature
Fixes #717 (partially)
The previous implementation of the smart-case feature was actually *too* smart,
in that it inspected the final character ranges in the AST to determine if the
pattern contained upper-case characters. This meant that patterns like ... | diff --git a/grep/src/search.rs b/grep/src/search.rs
index 498df0c..9942f58 100644
--- a/grep/src/search.rs
+++ b/grep/src/search.rs
@@ -102,9 +102,9 @@ impl GrepBuilder {
/// Whether to enable smart case search or not (disabled by default).
///
- /// Smart case uses case insensitive search if the regex ... | 1 | 39 | 42 |
d73a75d6cd82068252c35c5718900b6a1acb296e | dana | 2017-11-27T18:50:24 | Omit context separators when using a contextless option like -c or -l
Fixes #693 | diff --git a/src/args.rs b/src/args.rs
index 82f7ee6..106762c 100644
--- a/src/args.rs
+++ b/src/args.rs
@@ -153,14 +153,16 @@ impl Args {
/// Retrieve the configured file separator.
pub fn file_separator(&self) -> Option<Vec<u8>> {
- let use_heading_sep =
- self.heading
- && !s... | 2 | 27 | 6 |
7ae1f373c2b899c7db5f8106dec4d7423b1d8364 | Matthias Krüger | 2017-11-19T16:26:06 | clippy: fix warnings about useless format call and remove references that would be immediately dereferenced by the compiler. | diff --git a/src/args.rs b/src/args.rs
index 5d2e688..82f7ee6 100644
--- a/src/args.rs
+++ b/src/args.rs
@@ -601,7 +601,7 @@ impl<'a> ArgMatches<'a> {
if self.is_present("no-line-number") || self.is_present("count") {
false
} else {
- let only_stdin = paths == &[Path::new("-")]... | 3 | 4 | 4 |
4d34132365a00219f0c0baca9e05b119621dbd79 | Matthias Krüger | 2017-11-19T15:48:31 | clippy: main.rs: call Clone() on trait instead of ref-counted pointers and pass Arc<Args> by ref more often. | diff --git a/src/main.rs b/src/main.rs
index 1ff8eb0..1b35bb8 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -72,31 +72,31 @@ fn run(args: Arc<Args>) -> Result<u64> {
let threads = args.threads();
if args.files() {
if threads == 1 || args.is_one_path() {
- run_files_one_thread(args)
+ ... | 1 | 12 | 12 |
5173bfb11b00adf5ca3e05d7b7ff03f5971c2713 | Matthias Krüger | 2017-11-19T15:36:55 | clippy: docs: put more relevant things into backticks. | diff --git a/src/decoder.rs b/src/decoder.rs
index bd2c311..8bb9d2b 100644
--- a/src/decoder.rs
+++ b/src/decoder.rs
@@ -32,7 +32,7 @@ impl Bom {
}
}
-/// BomPeeker wraps `R` and satisfies the `io::Read` interface while also
+/// `BomPeeker` wraps `R` and satisfies the `io::Read` interface while also
/// provi... | 2 | 3 | 3 |
8141da9d39de8c67339d83ada2b7c387e5713d1d | Matthias Krüger | 2017-11-19T15:32:21 | clippy: string constants have static lifetime by default. | diff --git a/src/app.rs b/src/app.rs
index c92e681..9963963 100644
--- a/src/app.rs
+++ b/src/app.rs
@@ -2,7 +2,7 @@ use std::collections::HashMap;
use clap::{App, AppSettings, Arg, ArgSettings};
-const ABOUT: &'static str = "
+const ABOUT: &str = "
ripgrep (rg) recursively searches your current directory for a r... | 1 | 3 | 3 |
373e0595e6dfd4b1e1f29ec7b24f81ef4c08d90c | Igor Gnatenko | 2017-11-13T18:55:41 | bump bytecount to 0.2
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com> | diff --git a/Cargo.lock b/Cargo.lock
index 5576dfd..bf03673 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -29,7 +29,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
[[package]]
name = "bytecount"
-version = "0.1.7"
+version = "0.2.0"
source = "registry+https://github.com/rust-lang/crates.io-inde... | 2 | 11 | 11 |
263e8f92b98ca883362c59677e23255fabfff307 | Dan Burkert | 2017-10-28T22:32:43 | Update to memmap 0.6
`memmap` 0.6.0 introduces major API changes in anticipation of a 1.0
release. See https://github.com/danburkert/memmap-rs/releases/tag/0.6.0
for more information. CC danburkert/memmap-rs#33. | diff --git a/Cargo.lock b/Cargo.lock
index 61f7763..5576dfd 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -1,25 +1,3 @@
-[root]
-name = "ripgrep"
-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/rust-lang/crates.io... | 3 | 28 | 40 |
231698f802c0c8abdb7bdfe65f9110a9c596ba63 | M Pacer | 2017-11-10T22:38:46 | switch nb to jupyter | diff --git a/ignore/src/types.rs b/ignore/src/types.rs
index de2256a..d2ccfc2 100644
--- a/ignore/src/types.rs
+++ b/ignore/src/types.rs
@@ -148,6 +148,7 @@ const DEFAULT_TYPES: &'static [(&'static str, &'static [&'static str])] = &[
("json", &["*.json", "composer.lock"]),
("jsonl", &["*.jsonl"]),
("juli... | 1 | 1 | 1 |
3e8b44619d5f4d69be1e31fe188300bd6a12a233 | M Pacer | 2017-10-25T20:45:08 | add notebook file extensions to types | diff --git a/ignore/src/types.rs b/ignore/src/types.rs
index e70f44b..de2256a 100644
--- a/ignore/src/types.rs
+++ b/ignore/src/types.rs
@@ -195,6 +195,7 @@ const DEFAULT_TYPES: &'static [(&'static str, &'static [&'static str])] = &[
("msbuild", &[
"*.csproj", "*.fsproj", "*.vcxproj", "*.proj", "*.props",... | 1 | 1 | 0 |
679198e71aaa33b777405924110a96cf594aef12 | dana | 2017-11-16T22:20:16 | Support both [^...] and [!...] for globset class negation
Adds support for [^...] class negation in globs for parity with git, &al.
Fixes #663 | diff --git a/globset/src/glob.rs b/globset/src/glob.rs
index 84e3156..b081a21 100644
--- a/globset/src/glob.rs
+++ b/globset/src/glob.rs
@@ -840,12 +840,15 @@ impl<'a> Parser<'a> {
Ok(())
}
}
- let mut negated = false;
let mut ranges = vec![];
- if self.char... | 1 | 14 | 5 |
948821753cc91b96a37e0f03d02f60b11e2947b4 | Zoltan Kalmar | 2017-11-13T14:45:38 | Add Google Closure Templates type (.soy) | diff --git a/ignore/src/types.rs b/ignore/src/types.rs
index 3c7f8f1..e70f44b 100644
--- a/ignore/src/types.rs
+++ b/ignore/src/types.rs
@@ -242,6 +242,7 @@ const DEFAULT_TYPES: &'static [(&'static str, &'static [&'static str])] = &[
"*.bash", "*.csh", "*.ksh", "*.sh", "*.tcsh", "*.zsh",
]),
("sml", ... | 1 | 1 | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.