applyToTree
Apply a Diff to the provided tree, and return the resulting Index.
Signature
ts
class Repository {
applyToTree(
tree: Tree,
diff: Diff,
options?: ApplyOptions | null | undefined
): Index;
}Parameters
- treerequired · Tree
The tree to apply the diff to
- diffrequired · Diff
The diff to apply
- optionsnull | ApplyOptions
The options for the apply
- checkboolean
Don't actually make changes, just test that the patch applies.
- checkboolean
Returns
- Index
The postimage of the application
