-
Notifications
You must be signed in to change notification settings - Fork 2
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
3-way merge with OURS strategy #2
Comments
I added an implementation of the three-way merge based on Elektra Tools in the branch elektra-backend-threeway-merge. I will add a few more tests and then create a PR. |
Thank you, but please use the new merging API from @Chemin1: src/libs/merge Please ask if you have any questions. |
We got an answer from David Faure:
@FelixResch did you spot such a code? Does the code do what it should do? Can you try if manually edited changes are really not lost? @Chemin1 is this equivalent to 3-way merging or in which cases is 3-way merging better? |
In In Hence the merging is actually done in |
My question was about the unmodified code with the INI backend (the kconfig repo before we did anything), what is this code doing? And please also try if it actually works (manually edit a file and then press the save button in the configure dialog). |
This is the first part of my answer (We haven't changed the implementation of these methods)
Yes, this works |
Thank you for looking into it! @Chemin1 can you please analyze if your algorithm will perform the same or better than this marking-dirty-configuration approach? The dirty approach sounds much simpler than a 3-way merge with |
File was loaded once (base) and modified (our), then reloaded (their)
overwrite = use the marked version (our) and not the reloaded one (their)
=> I think equivalent.
As both seem to use three-way merging, the difference should be how good Elektra's and KConfig's Backends handle the properties of INI. I can analyze this, but I can't promise that I'll be able to finish it very quickly as I'll be participating in a tournament this weekend. |
This is not needed, thank you for looking into it! |
No description provided.
The text was updated successfully, but these errors were encountered: