From 93cbcb7e9b97bf04e93ee3d82193b82fc3a27dde Mon Sep 17 00:00:00 2001 From: Lily Shen <115414357+lilyshen0722@users.noreply.github.com> Date: Fri, 25 Sep 2026 04:04:44 -0700 Subject: [PATCH] chore(gitignore): ignore *.prev, the backup a rewrite leaves behind MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Nine `*.test.js.prev` copies reached main's history this week (#1878, `ba2a2b3b`) and `git check-ignore` exited 1 on every one of them — nothing ignored the suffix, so a scratch rewrite script's backups were fair game for staging. `*.bak` was already ignored, twice (`:2` and `:33`); the sibling suffix goes beside it and the duplicate goes away. --- .gitignore | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index d8000e0024..3f2a43a2ff 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,6 @@ # Common ignored files *.bak +*.prev *.log .DS_Store npm-debug.log @@ -30,7 +31,6 @@ dist/ # Ignore runtime-generated agent data and state external/clawdbot-state/ external/commonly-bot-state/ -*.bak # _external/clawdbot is a git submodule — tracked, not ignored # Ignore any other dirs that may appear under _external/