From 027adbf4858f8fc96e17e9484b5ce4a0481bfc1c Mon Sep 17 00:00:00 2001 From: Sven-Hendrik Haase Date: Mon, 4 Nov 2019 14:28:46 +0100 Subject: [PATCH] ignore/types: add 'diff' file type This includes .patch and .diff files. Fixes #1418, Closes #1419 --- CHANGELOG.md | 1 + ignore/src/types.rs | 1 + 2 files changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 25d0a209..eccaccc1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,7 @@ Performance improvements: Feature enhancements: +* Added or improved file type filtering for diff. * [FEATURE #1390](https://github.com/BurntSushi/ripgrep/pull/1390): Add new `--no-context-separator` flag that always hides context separators. diff --git a/ignore/src/types.rs b/ignore/src/types.rs index 1f8f99b0..fa286b54 100644 --- a/ignore/src/types.rs +++ b/ignore/src/types.rs @@ -134,6 +134,7 @@ const DEFAULT_TYPES: &'static [(&'static str, &'static [&'static str])] = &[ ("dart", &["*.dart"]), ("d", &["*.d"]), ("dhall", &["*.dhall"]), + ("diff", &["*.patch", "*.diff"]), ("docker", &["*Dockerfile*"]), ("edn", &["*.edn"]), ("elisp", &["*.el"]),