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

Branching & merging (Git-style) #68

Open
gsvarovsky opened this issue Jul 2, 2021 · 0 comments
Open

Branching & merging (Git-style) #68

gsvarovsky opened this issue Jul 2, 2021 · 0 comments
Labels
feature A major, next-level feature investigate Extra attention is needed

Comments

@gsvarovsky
Copy link
Member

gsvarovsky commented Jul 2, 2021

m-ld's protocol maps to Git's, with (roughly):

  • Every m-ld.transaction is a git.commit on the local clone (same word!)
  • Every commit is pushed to all remotes' main asap
  • Every commit on a remote's main is merged into local asap
  • Merges never conflict, and are immediately committed

This is driven by m-ld's realtime principle. However, there will certainly be times when a more measured Git style would be an advantage:

  • The longer a clone is offline, the more chance there is for operations to break some semantic rule that is intuitive to the consumers but unknown to m-ld, and for the 'merge' to therefore generate nonsense, or lose someone's intentions (the general case of Constraint insert assertions may have unexpected effects #55). This could be mitigated by an explicit separation of merge-commit, with the opportunity to eyeball the result of the merge before the commit.
  • Some use-cases may want to explicitly have multiple collaborators working on a 'branch', before 'merging' into the 'main' (see also Data recovery on fork #30). This could be out-of-scope but investigation might be enlightening.
@gsvarovsky gsvarovsky added this to To do in m-ld backlog via automation Jul 2, 2021
@gsvarovsky gsvarovsky added the investigate Extra attention is needed label Jul 2, 2021
@gsvarovsky gsvarovsky added the feature A major, next-level feature label Jan 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature A major, next-level feature investigate Extra attention is needed
Projects
Development

No branches or pull requests

1 participant