feat(bundler): support gitignore-style negation in .juliabundleignore#161
Merged
Conversation
pfitzseb
enabled auto-merge (squash)
July 13, 2026 20:15
pankgeorg
previously approved these changes
Jul 14, 2026
…#130) `.juliabundleignore` now supports `.gitignore`-style negation. Patterns are evaluated in file order and the last matching pattern wins: a plain pattern excludes a path, and a `!`-prefixed pattern re-includes a path an earlier pattern excluded. Comment (`#`) and blank lines are now skipped, and `\!` / `\#` escape a literal leading `!` / `#`. This lets users ignore everything and then add back only what they need, e.g.: * !programs/ !programs/* !Project.toml !Manifest.toml Matching switches from an unordered set with an "excluded if any pattern matches" test to an ordered rule list with last-match-wins semantics. With no `!` rules the result is identical to the previous behavior, so existing `.juliabundleignore` files are unaffected. Note: because `Tar.create` prunes excluded directories, re-including a path under a directory requires re-including the parent directory first (the same limitation git has); this is documented. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
pfitzseb
force-pushed
the
feature/juliabundleignore-negation
branch
from
July 14, 2026 08:20
203141c to
a73db20
Compare
pankgeorg
approved these changes
Jul 14, 2026
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.
.juliabundleignorenow supports.gitignore-style negation. Patterns are evaluated in file order and the last matching pattern wins: a plain pattern excludes a path, and a!-prefixed pattern re-includes a path an earlier pattern excluded. Comment (#) and blank lines are now skipped, and\!/\#escape a literal leading!/#.This lets users ignore everything and then add back only what they need, e.g.:
Matching switches from an unordered set with an "excluded if any pattern matches" test to an ordered rule list with last-match-wins semantics. With no
!rules the result is identical to the previous behavior, so existing.juliabundleignorefiles are unaffected.Note: because
Tar.createprunes excluded directories, re-including a path under a directory requires re-including the parent directory first (the same limitation git has); this is documented.Fixes #130.