From 7081522b45e7d6bea57e7a523c295a2a5d3c268c Mon Sep 17 00:00:00 2001 From: Daniel Han Date: Mon, 27 Jul 2026 06:04:08 -0700 Subject: [PATCH] gitignore: match the stray "~" TMPDIR dir at any depth, plus /temp/ (#7499) The `/~/` rule was root-anchored, so it only caught a stray "~" directory created at the repo root. Tools run from a subdirectory create it there instead, and studio/frontend/~/ once reached a PR as 708 tracked files (a Node compile cache plus cwd markers). Unanchor it. Also ignore /temp/, the repo-root scratch dir tests/studio/test_chat_preset_builtin_invariants.py writes into. Nothing under either path has ever been tracked on main. --- .gitignore | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 39ca2226ca..fafd17aa95 100644 --- a/.gitignore +++ b/.gitignore @@ -238,4 +238,5 @@ package-lock.json !studio/package-lock.json llama.cpp/ # Stray "~" dir some tools create from a literal ~ TMPDIR; never part of the repo. -/~/ +~/ +/temp/