public interface NodeStoreBranch
NodeStore
to which transient changes can be applied and later merged
back or discarded.Modifier and Type | Method and Description |
---|---|
NodeState |
getBase()
Returns the base state of this branch.
|
NodeState |
getHead()
Returns the head state of this branch.
|
NodeState |
merge(CommitHook hook,
CommitInfo info)
Merges the changes in this branch to the main content tree.
|
void |
rebase()
Rebase the changes from this branch on top of the current
root.
|
void |
setRoot(NodeState newRoot)
Updates the state of the content tree of this private branch.
|
NodeState getBase()
NodeState getHead()
setRoot(NodeState)
.java.lang.IllegalStateException
- if the branch is already mergedvoid setRoot(NodeState newRoot)
newRoot
- new root node statejava.lang.IllegalStateException
- if the branch is already mergedNodeState merge(CommitHook hook, CommitInfo info) throws CommitFailedException
hook
- the commit hook to apply while merging changesinfo
- commit info associated with this merge operationCommitFailedException
- if the merge failedjava.lang.IllegalStateException
- if the branch is already mergedvoid rebase()
"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"