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 #181
Comments
This was implemented but not made part of the top-level API f94da90 |
@gonzofish how to write it to file like git does? |
sorry @goodmind, I don't remember, I haven't used this library in over a year...sorry I cannot be more help |
I have done it, but I found |
This is a feature request.
Given a common ancestor and 2 sets of patches, provide a merged document that may include conflicts to resolve manually.
This would be useful to allow two or more users collaborate on the edition of a document, implementing an equivalent of git merge.
It is assumed that the most recent common ancestor is know and provided as a parameter:
Where x_patches and y_patches are Arrays of patches for the x and y branches from the common ancestor,
Options may be used to provide a manual merge patterns which could default to:
For the algorithm, see https://www.quora.com/How-does-Git-merge-work.
The text was updated successfully, but these errors were encountered: