Skip to content
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

Support for parsing .gitignore-like lists for include & ignore #218

Open
vico93 opened this issue Nov 9, 2020 · 1 comment
Open

Support for parsing .gitignore-like lists for include & ignore #218

vico93 opened this issue Nov 9, 2020 · 1 comment
Labels
backlog client Tasks related to the client code / configuration / handling enhancement server Tasks related to the server code / configuration / handling
Milestone

Comments

@vico93
Copy link

vico93 commented Nov 9, 2020

Currently i'm using a private git server (in a gitbucket instance on my RPI3b+) to send my Fabric modpack to my friend.

Since i play with only one person (and the dedicated server) i think keeping a whole git server running is a bit overkill for it (and i use that only to host my modpack), that's why i'm interesting in moving back to ServerSync (used it back when i was using 1.8 and Forge).

But i became kinda addicted to the gitignore standard, and i want to ask if would be possible to make serversync able to parse .gitignore (or a plain-text file with other name but in the same internal format) files in same level of ServerSync .jar/.exe instead of need to rely entirely on config options (i read the wiki and think its kinda confusing because it separate files and directories list, while on .gitignore files you can declare them together).

Thanks in advance!

@rheimus
Copy link
Collaborator

rheimus commented Nov 11, 2020

.gitignore uses glob patterns, which is similar to how SS config works.

I intend to separate directory management and file inclusion in the next version so that it will be more like:

directories: [
  {path: 'mods', mode: 'mirror'}
],
files: {
  include: [
    **/bobs_stuff/**,
    mods/carrots.jar
  ],
  ignore: [
    **/*.ignore,
    mods/nuts.wad
  ]
}

For the immediate future I will not be maintaining multiple configuration styles, however, a .serversyncignore would be nice to add later.

@rheimus rheimus added enhancement client Tasks related to the client code / configuration / handling server Tasks related to the server code / configuration / handling labels Nov 11, 2020
@rheimus rheimus added this to the future milestone Jan 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backlog client Tasks related to the client code / configuration / handling enhancement server Tasks related to the server code / configuration / handling
Projects
None yet
Development

No branches or pull requests

2 participants