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 <noreply@anthropic.com>
This commit is contained in:
Anachronaut
2026-08-19 18:16:06 -04:00
co-authored by Claude Opus 5
parent c4b59acc68
commit 51601545ae
+15 -9
View File
@@ -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__/