From 7fc48961ed34ea851a8836784a263e520e9c7f8c Mon Sep 17 00:00:00 2001 From: Christoph Badura Date: Sat, 29 Jun 2024 00:21:08 +0200 Subject: [PATCH] ignore/types: add Makefile.* The *BSD build systems make use of "Makefile.inc" a lot. Make the "make" type recognize this file by default. And more generally, `Makefile.*` seems to be a convention, so just generalize it. Closes #2846 --- CHANGELOG.md | 1 + crates/ignore/src/default_types.rs | 1 + 2 files changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8aa2dcb3..891221d6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -16,6 +16,7 @@ Bug fixes: Feature enhancements: +* Many enhancements to the default set of file types available for filtering. * [FEATURE #2708](https://github.com/BurntSushi/ripgrep/pull/2708): Completions for the fish shell take ripgrep's config file into account. * [FEATURE #2841](https://github.com/BurntSushi/ripgrep/pull/2841): diff --git a/crates/ignore/src/default_types.rs b/crates/ignore/src/default_types.rs index e1da789b..2718d0dd 100644 --- a/crates/ignore/src/default_types.rs +++ b/crates/ignore/src/default_types.rs @@ -159,6 +159,7 @@ pub(crate) const DEFAULT_TYPES: &[(&[&str], &[&str])] = &[ "[Gg][Nn][Uu]makefile", "[Mm]akefile", "[Gg][Nn][Uu]makefile.am", "[Mm]akefile.am", "[Gg][Nn][Uu]makefile.in", "[Mm]akefile.in", + "Makefile.*", "*.mk", "*.mak" ]), (&["mako"], &["*.mako", "*.mao"]),