public interface NodeStoreBranch
NodeStore
to which transient changes can be applied and later merged
back or discarded.Modifier and Type | Method and Description |
---|---|
@NotNull NodeState |
getBase()
Returns the base state of this branch.
|
@NotNull NodeState |
getHead()
Returns the head state of this branch.
|
@NotNull NodeState |
merge(@NotNull CommitHook hook,
@NotNull 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.
|
@NotNull @NotNull NodeState getBase()
@NotNull @NotNull 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 merged@NotNull @NotNull NodeState merge(@NotNull @NotNull CommitHook hook, @NotNull @NotNull 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. All Rights Reserved