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
This commit is contained in:
Andrew Gallant authored and Andrew Gallant committed 2025-03-17 12:37:57 -04:00
1 parent 7ca5f132ca
commit 7512a71bbb
1 file changed
+1
+1
View File
@@ -0,0 +1 @@
!/.github/