Skip to content

Conversation

@lionel-oai
Copy link
Contributor

Ghost snapshot ignores

This PR should close #7067, #7395, #7405.

Prior to this change the ghost snapshot task ran git status --ignored=matching so the report picked up literally every ignored file. When a directory only contained entries matched by patterns such as dozens/*.txt, /test123/generated/*.html, or /wp-includes/*, Git still enumerated them and the large-untracked-dir detection treated the parent directory as “large,” even though everything inside was intentionally ignored.

By removing --ignored=matching we only capture true untracked paths now, so those patterns stay out of the snapshot report and no longer trigger the “large untracked directories” warning.

Copy link
Collaborator

@jif-oai jif-oai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add a few more tests where you create/delete ignored files and make sure they get ignored?

@lionel-oai lionel-oai merged commit 349734e into main Dec 2, 2025
26 checks passed
@lionel-oai lionel-oai deleted the fix/repository-snapshot branch December 2, 2025 18:42
@github-actions github-actions bot locked and limited conversation to collaborators Dec 2, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

4 participants