From 51601545aee99e3259c30d6ab25bd5dbbd7f9e42 Mon Sep 17 00:00:00 2001 From: Anachronaut Date: Wed, 19 Aug 2026 18:16:06 -0400 Subject: [PATCH] Anchor the gitignore patterns to the repository root Without a leading slash a pattern matches at any depth, so the rules for the three built binaries also matched directories: "Assembler" ignored Source/Assembler. The files already in it stayed tracked, which is why nothing had gone wrong yet, but a new source file added there would have been silently untracked and left out of a commit. Found by git refusing to stage a change to Source/Assembler/firstPass.c. Co-Authored-By: Claude Opus 5 --- .gitignore | 24 +++++++++++++++--------- 1 file changed, 15 insertions(+), 9 deletions(-) diff --git a/.gitignore b/.gitignore index 49010f0..d05758b 100644 --- a/.gitignore +++ b/.gitignore @@ -1,9 +1,15 @@ -Tests/build/ -Programs/build/ -Object/ -Assembler -SplitBit -SplitDisk -CLAUDE.md -claudeResume.sh -codexResume.sh +# Anchored to the repository root, all of them. Without the leading slash a pattern +# matches at any depth, so "Assembler" also ignored the Source/Assembler DIRECTORY - and a +# new source file added there would have been silently untracked. +/Tests/build/ +/Programs/build/ +/Object/ +/Assembler +/SplitBit +/SplitDisk +/CLAUDE.md +/claudeResume.sh +/codexResume.sh + +# Python leaves these beside the test scripts. +__pycache__/