[LTP] [PATCH v2] gitignore: ignore ltp-agent setup files

Andrea Cervesato andrea.cervesato@suse.de
Mon Jun 1 08:42:01 CEST 2026


From: Andrea Cervesato <andrea.cervesato@suse.com>

The ltp-agent tool injects a number of files and symlinks into the LTP
working directory at runtime (AGENTS.md, GEMINI.md, .agents, .claude,
and the agents/, linter/ and skills/ symlinks pointing at the agent
data). These are local helpers used by the agent and must never be
tracked or committed.

Directory entries are anchored to the repository root (leading '/') so
they only match the ltp-agent-injected paths and cannot accidentally
shadow any unrelated subdirectory with the same name in the future.

Signed-off-by: Andrea Cervesato <andrea.cervesato@suse.com>
---
Changes in v2:
- fix files shadowing
- Link to v1: https://lore.kernel.org/r/20260530-gitignore_ltp_agent-v1-1-e8812d8de8c5@suse.com
---
 .gitignore | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/.gitignore b/.gitignore
index f10cd0c80e3655ad720e465f47c12ad0d51e7cd1..d68769451103e22c3e3a4d6c80f824e2412f0ae4 100644
--- a/.gitignore
+++ b/.gitignore
@@ -63,3 +63,12 @@ compile_commands.json
 
 # added by scripts/checkpatch.pl
 .checkpatch-camelcase.*
+
+# ltp-agent setup
+AGENTS.md
+GEMINI.md
+.agents
+.claude
+/agents/
+/linter/
+/skills/

---
base-commit: 5ccf816f5d0e6c0ec3d808be456dd9ffa2a7736d
change-id: 20260530-gitignore_ltp_agent-0c7c137b6156

Best regards,
-- 
Andrea Cervesato <andrea.cervesato@suse.com>



More information about the ltp mailing list