Skip to content

Fix build/ folder leaking into output despite .tree2ignore exclusion … - #3

Merged
law4percent merged 2 commits into
mainfrom
rc/v1.2.2
Jul 11, 2026
Merged

law4percent merged 2 commits into
mainfrom
rc/v1.2.2

Conversation

@law4percent

Copy link
Copy Markdown
Owner

…(v1.2.2)

Unanchored !pattern whitelist rules (e.g. !reports, !assets) matched folder names at any depth, and the scanner recursed into every directory before checking exclusion — so an excluded directory could be resurrected by an unrelated nested folder sharing a whitelisted name (e.g. build/reports surviving via !reports kept build/ visible). build_node_tree() now skips excluded directories immediately, matching Git's actual behavior of never descending into an ignored directory.

…(v1.2.2)

Unanchored !pattern whitelist rules (e.g. !reports, !assets) matched
folder names at any depth, and the scanner recursed into every
directory before checking exclusion — so an excluded directory could
be resurrected by an unrelated nested folder sharing a whitelisted
name (e.g. build/reports surviving via !reports kept build/ visible).
build_node_tree() now skips excluded directories immediately, matching
Git's actual behavior of never descending into an ignored directory.
@law4percent law4percent self-assigned this Jul 11, 2026
@law4percent law4percent added the bug Something isn't working label Jul 11, 2026
@law4percent
law4percent merged commit 32d8110 into main Jul 11, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant