-
Notifications
You must be signed in to change notification settings - Fork 23
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
Three-way merge configuration files #64
Comments
Hmm.. this is interesting. A few things to note:
|
I would agree.
Right now, for an entry in For files like quests, resources, we can already leave this |
I just realized that there is a more obvious use case -
This one is trickier because I don't think text-based merge can help you merge two arrays into one. That requires fully parsing On the other hand, for |
While revisiting issues discovered in our mod jam/convention event last year, I noticed this specific use-case:
foo
and go ahead to edit config on their own, i.e. their configs are nowbaz
is now disabled by default:To my knowledge, current packwiz-installer can either keep the config in scenario 3, or use the config from scenario 4, but the mod author expects this instead (syntax highlighting is JavaScript - so we can have
//
comments):In other words, the mod author wishes to do a 3-way merge for configs from scenario 2, 3 and 4.
My understanding is that, to handle 3-way merging, we actually need to have a copy of config from scenario 2, for we need to generate diff between scenario 2 and 3, and between scenario 2 and 4. This original copy does not seem available, however; user might not keep a copy of the original, and packwiz does not store the original, either.
This feature may also require the modpack to be versioned. I haven't looked into this issue in deep, so I may be wrong on this.
The text was updated successfully, but these errors were encountered: