You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 28, 2021. It is now read-only.
In code, we want callers to be able to specify optional merge behavior when they commit a new Head for a Dataset -- including disallowing any merging. They should be able to provide a callback for custom conflict resolution, and several defaults will be provided: none, 'left', and 'right'.
This should be implemented in Go and JS
The text was updated successfully, but these errors were encountered:
This patch adds an optional MergePolicy field to CommitOptions. It's a
callback. If the caller sets it, then the commit code will look for a
common ancestor between the Dataset HEAD and the provided Commit. If
the caller-provided Commit descends from HEAD, then Commit proceeds as
normal.
If it does not, but there is a common ancestor, the code runs
merge.ThreeWay() on the values of the provided Commit, HEAD, and the
common ancestor, invoking the MergePolicy callback to resolve
conflicts. If merge succeeds, a merge Commit is created that descends
from both HEAD and the caller-provided Commit. This becomes the new
HEAD of the Dataset.
Towards attic-labs#2534
In code, we want callers to be able to specify optional merge behavior when they commit a new Head for a Dataset -- including disallowing any merging. They should be able to provide a callback for custom conflict resolution, and several defaults will be provided: none, 'left', and 'right'.
This should be implemented in Go and JS
The text was updated successfully, but these errors were encountered: