Name the re-included env templates in the .gitignore comment
check / check (push) Successful in 28s

The comment said a committed template is re-included by a negation, but
the file re-includes only `example.env` and `sample.env`. It now names
those two and tells a repository to add its own negation after these
lines for any other template, for example `!.env.example`, as the
`.dockerignore` comment does.

Model: opus-5-5
This commit is contained in:
2026-10-03 14:25:39 +00:00
parent 717756df04
commit 96924d8dc9
+3 -2
View File
@@ -25,8 +25,9 @@ node_modules/
# ranges rather than a lowercase form that misses `Server.Key`. # ranges rather than a lowercase form that misses `Server.Key`.
# Environment files. `*.env` covers bare `.env` and the `prod.env` # Environment files. `*.env` covers bare `.env` and the `prod.env`
# convention. A file of this shape committed on purpose, such as a # convention. Only the templates `example.env` and `sample.env` are
# template holding no real values, is re-included by a negation. # re-included below. A repository that commits any other template adds
# its own negation after these lines, for example `!.env.example`.
*.[eE][nN][vV] *.[eE][nN][vV]
.[eE][nN][vV].* .[eE][nN][vV].*
.[eE][nN][vV][rR][cC] .[eE][nN][vV][rR][cC]