Skip to content

~95% on SimpleQA (e.g. Qwen3.6-27B on a 3090). Supports all local and cloud LLMs (llama.cpp, Ollama, Google, ...). 10+ search engines - arXiv, PubMed, your private documents. Everything Local & Encrypted.

fix(gitignore): move all dead dotfile negations below the catch-all (#4922)

LearningCircuit1b1797a4cea3
diff --git a/.gitignore b/.gitignore
index f52325c565..befbae3f2f 100644
--- a/.gitignore
+++ b/.gitignore
@@ -27,7 +27,9 @@ src/local_deep_research/web/static/css/themes.css
!examples/**/*.sh
# Templates, Jinja2, XML — explicit paths
-!src/local_deep_research/defaults/.env.template
+# NOTE: .env.template has a leading-dot basename, so the `.*` catch-all
+# below would re-ignore it -- it is re-allowed in the post-catch-all block
+# instead (a negation here would be a dead rule).
!src/local_deep_research/notifications/templates/**/*.jinja2
!unraid-templates/**/*.xml
@@ -75,10 +77,7 @@ src/local_deep_research/web/static/css/themes.css
!pyproject.toml
!pdm.lock
!package.json
-!.gitignore
-!.gitkeep
!MANIFEST.in
-!.pre-commit-config.yaml
!eslint.config.mjs
!vulture_whitelist.py
!docker-compose.yml
@@ -88,25 +87,7 @@ src/local_deep_research/web/static/css/themes.css
/*.json
!package.json
-# Allow pre-commit hooks
-!.pre-commit-hooks/
-!.pre-commit-hooks/*.py
-!.pre-commit-hooks/*.sh
-
-# Allow security configuration files
-!.gitleaks.toml
-!.semgrepignore
-!bearer.yml
-!.trivyignore
-!.semgrep/
-!.semgrep/**/*.yml
-!.semgrep/**/*.yaml
-!.semgrep/**/*.md
-!.safety-policy.yml
-
-
# Block all other dot files/folders
-!.nvmrc
.*
.*/
!.github/
@@ -117,12 +98,38 @@ src/local_deep_research/web/static/css/themes.css
!.github/**/*.py
!.github/CODEOWNERS
!.github/security/*.txt
+# Config dotfiles re-allowed AFTER the `.*`/`.*/` catch-all above. A `!`
+# negation placed BEFORE the catch-all is a dead rule -- the catch-all
+# re-ignores the file, which then stays tracked only if it was committed
+# before the catch-all existed (git never ignores an already-tracked path,
+# which masks the bug). Put every new dot-config negation in THIS block --
+# otherwise e.g. a nested `.gitignore` or a `newdir/.gitkeep` is silently
+# dropped by `git add`.
+!.gitignore
+!.gitkeep
+!.nvmrc
+!.pre-commit-config.yaml
+# Shipped source template whose basename starts with a dot -- caught by the
+# `.*` catch-all above, so it must be re-allowed here (not in the templates
+# block near its non-dotfile siblings).
+!src/local_deep_research/defaults/.env.template
!.gitleaksignore
!.grype.yaml
!.dockerignore
-# Re-allow pre-commit hooks after the `.*/` catch-all (the earlier
-# !.pre-commit-hooks/ block is overridden by `.*/` above, which is why
-# new hook files land as ignored until this rule is re-applied here).
+# Security-tool configs. Directory rules mirror the .github/ block above:
+# re-allow the dir first, then its file types, so newly added
+# .semgrep/rules/* files actually get tracked. (bearer.yml is not a dotfile
+# -- the catch-all never affected it -- grouped here by topic.)
+!.gitleaks.toml
+!.semgrepignore
+!bearer.yml
+!.trivyignore
+!.safety-policy.yml
+!.semgrep/
+!.semgrep/**/*.yml
+!.semgrep/**/*.yaml
+!.semgrep/**/*.md
+# Pre-commit hook scripts (dir + file types), re-allowed after the catch-all.
!.pre-commit-hooks/
!.pre-commit-hooks/*.py
!.pre-commit-hooks/*.sh