gitignore / glob / tracked review
Separate gitignore globs, exceptions, and tracked state
Review glob meaning, negation patterns, already tracked files, and directory scope separately. Prepare a correction proposal without writing to the repository.
gitignore / glob / tracked review
Review glob meaning, negation patterns, already tracked files, and directory scope separately. Prepare a correction proposal without writing to the repository.
Pattern evaluation and tracked state are different. Adding an ignore rule does not automatically untrack an existing file.
*.log = glob exclusion; negation = include exception; tracked.txt = tracked remains; tmp/ = directory scope| Category | Review |
|---|---|
| glob-exclusion | Check that a glob such as *.log excludes only the intended scope. |
| negation-exception | Check that a negation exception matches parent exclusions and order. |
| tracked-file | An already tracked file stays tracked; a separate approved action is required. |
| directory-only | A trailing slash such as tmp/ is reviewed as directory scope. |
This guide does not write .gitignore or run git commands. It does not upload a repository; use synthetic cases only.
| case | decision | request |
|---|---|---|
glob-exclusion | exclude | Confirm scope before changing the glob. |
negation-exception | include-exception | Confirm exception order and parent path. |
tracked-file | tracked-remains | Do not confuse ignore rules with untracking. |
directory-only | directory-scope | Confirm files are not accidentally excluded. |
unsupported-repository-write | reject | Reject a request requiring repository write. |
Do not paste a real repository, secret, or token. Use synthetic cases and follow the existing approval process for real changes.