From 7512a71bbb17a71c5aa713e3de326b8d92cda44a Mon Sep 17 00:00:00 2001 From: Andrew Gallant Date: Mon, 17 Mar 2025 11:34:43 -0400 Subject: [PATCH] github: include `/.github/` in ripgrep searches by default 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 --- .ignore | 1 + 1 file changed, 1 insertion(+) create mode 100644 .ignore diff --git a/.ignore b/.ignore new file mode 100644 index 0000000000..19022145b2 --- /dev/null +++ b/.ignore @@ -0,0 +1 @@ +!/.github/