From 4e5dcea9a42b5d375233e75c1ae9be8c8306dd9e Mon Sep 17 00:00:00 2001 From: Andrew Gallant Date: Mon, 17 Mar 2025 13:13:49 -0400 Subject: [PATCH] github: include /.github/ in ripgrep searches by default (#12243) Previously, unless you had some other configuration that impacts ripgrep, `rg -tyaml uses:` would return zero results. After this changes, it returns more of what you might expect. This is because ripgrep ignores hidden files and directories by default. But arguably, searching `.github` by default is probably what we want. I do the same thing in ripgrep's repository: https://github.com/BurntSushi/ripgrep/blob/de4baa10024f2cb62d438596274b9b710e01c59b/.ignore#L1 Companion PR: https://github.com/astral-sh/ruff/pull/16814 --- .ignore | 1 + 1 file changed, 1 insertion(+) create mode 100644 .ignore diff --git a/.ignore b/.ignore new file mode 100644 index 000000000..19022145b --- /dev/null +++ b/.ignore @@ -0,0 +1 @@ +!/.github/