BranchableTree Interface
A "version control"-style branch of a SharedTree.
To use, import via fluid-framework/alpha
.
For more information about our API support guarantees, see here.
Signature
/** @sealed */
export interface BranchableTree extends ViewableTree
Extends: ViewableTree
Remarks
Branches may be used to coordinate edits to a SharedTree, e.g. via merge and rebase operations. Changes applied to a branch of a branch only apply to that branch and are isolated from other branches. Changes may be synchronized across branches via merge and rebase operations provided on the branch object.
Methods
Method | Alerts | Return Type | Description |
---|---|---|---|
branch() | Alpha |
TreeBranchFork | Spawn a new branch which is based off of the current state of this branch. Any mutations of the new branch will not apply to this branch until the new branch is merged back into this branch via merge() . |
merge(branch) | Alpha |
void | Apply all the new changes on the given branch to this branch. |
merge(branch, disposeMerged) | Alpha |
void | Apply all the new changes on the given branch to this branch. |
rebase(branch) | Alpha |
void | Rebase the given branch onto this branch. |
Method Details
branch
Spawn a new branch which is based off of the current state of this branch. Any mutations of the new branch will not apply to this branch until the new branch is merged back into this branch via merge()
.
To use, import via fluid-framework/alpha
.
For more information about our API support guarantees, see here.