[gitignore-force-add] Force-add gitignored infrastructure in init commit#226
Merged
Conversation
…nore flag Adds discoverGitignoredFiles() that enumerates files on disk under KNOWN_ROOTS and KNOWN_ROOT_FILES, filters through isExcluded(), and batch-checks against git check-ignore --stdin. Wires into the action body with a separate git add -f call for gitignored files. Adds --respect-gitignore flag to opt out of force-adding. Co-authored-by: Ana <build@anatomia.dev>
Co-authored-by: Ana <build@anatomia.dev>
Co-authored-by: Ana <build@anatomia.dev>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Anatomia Proof — Force-add gitignored infrastructure in init commit
✅ PASS · 21/21 assertions satisfied · 9/9 ACs met · 0 deviations
Contract Compliance
Generated by Anatomia · Ship with proof.
Summary
discoverGitignoredFiles()that dynamically enumerates infrastructure files on disk and batch-checks them againstgit check-ignore --stdin, so gitignored files (e.g., when a team gitignores.claude/) are force-added to init commits--respect-gitignoreflag to opt out of force-adding, with a warning about worktree implicationsgit add -fcall, console output naming force-added files, and an adjusted file count in the success messagePipeline Artifacts
.ana/plans/active/gitignore-force-add/scope.md.ana/plans/active/gitignore-force-add/spec.md.ana/plans/active/gitignore-force-add/build_report.md.ana/plans/active/gitignore-force-add/verify_report.mdVerification
Co-authored-by: Ana build@anatomia.dev