-
Notifications
You must be signed in to change notification settings - Fork 71
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
Feature: Configurable exceptions for gitignore #1168
Comments
Thanks @intgr for opening this issue and sorry for the late reply! I think this is somewhat related to a general overworking of how to include/exclude. I created a milestone for that: https://github.com/rustic-rs/rustic/issues?q=is%3Aopen+is%3Aissue+milestone%3A%22Overwork+includes%2Fexcludes%22 The current state is:
I think we should have
If you want to work on this, you are very welcome! I'll try to support as much as I can but must say that I am unfortunately a bit short on time, currently... |
Do you have any concrete thoughts on what the configuration schema for that might look like? If we want full flexibility with arbitrary cascades of includes/excludes, seems like it could get pretty complicated. But I haven't thought much about this. Something like |
I have tons of git repositories under my home directory, which I want to keep backed up.
I want to keep
git-ignore = true
in my settings to ignore build artifacts and most unnecessary junk in repositories.But there are certain paths, which are gitignored (I don't want to share with other developers), but still want backed up:
_local
- I often create such a directory in a repository root, which can contain partial experiments, personal notes, etc..idea
- if I ever run into a disaster recovery scenario, it would greatly speed up recovery if per-project IDE configuration (IntelliJ IDEA) is preserved.I might put in the effort to submit a PR for this, but first I want to ensure the feature makes sense to others.
I guess this would be an additional setting. Naming is a bit complicated, since it's a double negative, "git-ignore-ignores" probably wouldn't fly. 😄
I think this should only apply if a path would be matched by
glob = [...]
, but is excluded by.gitignore
. Soglob
exclude rule can still exclude_local
from a backup.Maybe
git-ignore-exceptions = ["_local", ".idea", "maybe*glob*syntax*too"]
git-ignore-override
?The text was updated successfully, but these errors were encountered: