[PATCH v2] .gitignore: Add Coding Assistants section

From: Kees Cook
Date: Mon Sep 08 2025 - 23:17:26 EST


Both Claude and Gemini save locally personalized configurations in their
respective .md files and dot-directories. Since these are continuously
updated by the developer (and agent) when working on projects, these
files must be ignored, much like how we ignore the debian/ directory, etc.

Reviewed-by: Tamir Duberstein <tamird@xxxxxxxxxx>
Link: https://lore.kernel.org/r/20250815064430.work.772-kees@xxxxxxxxxx
Signed-off-by: Kees Cook <kees@xxxxxxxxxx>
---
v2: drop the trailing /s so symlinks will be ignored too
v1: https://lore.kernel.org/lkml/20250815064430.work.772-kees@xxxxxxxxxx/
---
.gitignore | 8 ++++++++
1 file changed, 8 insertions(+)

diff --git a/.gitignore b/.gitignore
index 929054df5212..8b9ccfa8e3b7 100644
--- a/.gitignore
+++ b/.gitignore
@@ -183,3 +183,11 @@ sphinx_*/

# Rust analyzer configuration
/rust-project.json
+
+#
+# Coding assistants
+#
+/CLAUDE.md
+/.claude
+/GEMINI.md
+/.gemini
--
2.34.1