-
Notifications
You must be signed in to change notification settings - Fork 382
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FR: Allow exclusions in sparse checkouts #1896
Comments
(Assuming we only care to allow prefix exclusions, and not arbitrary globs for an initial pass.) Forgetting the interface aspects for now, it seems to me that something like is roughly the right path:
(Possibly adding a |
Yes, something like that sounds good.
Is that the same as |
yes, yes it is 🙈 |
I'm going to attempt to tackle this issue and issue #2288 simultaneously with a redesign of SparsePatterns from |
I'd like to be able to specify a few prefixes to exclude from my working copy.
Currently
jj sparse set
only allows positive patterns. To get what I want, I have tojj sparse set --clear
jj sparse set --add
everything except the patterns I want to excludeIt would be a lot more convenient to just be able to do something like
jj sparse set --remove someprefix
, or add some negated prefixes viajj sparse set --edit
and have it work.The text was updated successfully, but these errors were encountered: