Skip to content

Commit 271abb8

Browse files
committed
Merge branch 'master' of https://github.com/burntsushi/ripgrep
2 parents eed45cd + 2af7724 commit 271abb8

File tree

5 files changed

+62
-52
lines changed

5 files changed

+62
-52
lines changed

Cargo.lock

Lines changed: 49 additions & 49 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -431,3 +431,4 @@ The following is a list of known translations of ripgrep's documentation. These
431431
are unofficially maintained and may not be up to date.
432432

433433
* [Chinese](https://github.com/chinanf-boy/ripgrep-zh#%E6%9B%B4%E6%96%B0-)
434+
* [Spanish](https://github.com/UltiRequiem/traducciones/tree/master/ripgrep)

crates/core/app.rs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1213,7 +1213,7 @@ between supported regex engines depending on the features used in a pattern on
12131213
a best effort basis.
12141214
12151215
Note that the 'pcre2' engine is an optional ripgrep feature. If PCRE2 wasn't
1216-
including in your build of ripgrep, then using this flag will result in ripgrep
1216+
included in your build of ripgrep, then using this flag will result in ripgrep
12171217
printing an error message and exiting.
12181218
12191219
This overrides previous uses of --pcre2 and --auto-hybrid-regex flags.
@@ -1452,6 +1452,10 @@ Search hidden files and directories. By default, hidden files and directories
14521452
are skipped. Note that if a hidden file or a directory is whitelisted in an
14531453
ignore file, then it will be searched even if this flag isn't provided.
14541454
1455+
A file or directory is considered hidden if its base name starts with a dot
1456+
character ('.'). On operating systems which support a `hidden` file attribute,
1457+
like Windows, files with this attribute are also considered hidden.
1458+
14551459
This flag can be disabled with --no-hidden.
14561460
"
14571461
);
@@ -1990,6 +1994,9 @@ fn flag_no_ignore_dot(args: &mut Vec<RGArg>) {
19901994
"\
19911995
Don't respect .ignore files.
19921996
1997+
This does *not* affect whether ripgrep will ignore files and directories
1998+
whose names begin with a dot. For that, see --hidden.
1999+
19932000
This flag can be disabled with the --ignore-dot flag.
19942001
"
19952002
);

crates/core/search.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -325,9 +325,10 @@ impl<W: WriteColor> SearchWorker<W> {
325325
} else {
326326
self.config.binary_implicit.clone()
327327
};
328-
self.searcher.set_binary_detection(bin);
329-
330328
let path = subject.path();
329+
log::trace!("{}: binary detection: {:?}", path.display(), bin);
330+
331+
self.searcher.set_binary_detection(bin);
331332
if subject.is_stdin() {
332333
self.search_reader(path, io::stdin().lock())
333334
} else if self.should_preprocess(path) {

crates/ignore/src/default_types.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,7 @@ pub const DEFAULT_TYPES: &[(&str, &[&str])] = &[
140140
("md", &["*.markdown", "*.md", "*.mdown", "*.mkdn"]),
141141
("meson", &["meson.build", "meson_options.txt"]),
142142
("minified", &["*.min.html", "*.min.css", "*.min.js"]),
143+
("mint", &["*.mint"]),
143144
("mk", &["mkfile"]),
144145
("ml", &["*.ml"]),
145146
("msbuild", &[

0 commit comments

Comments
 (0)