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:

de4baa1002/.ignore (L1)

Companion PR: https://github.com/astral-sh/ruff/pull/16814
This commit is contained in:
Andrew Gallant 2025-03-17 13:13:49 -04:00 committed by GitHub
parent fe06f1a7ce
commit 4e5dcea9a4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

1
.ignore Normal file
View file

@ -0,0 +1 @@
!/.github/