applyToTree
제공된 트리에 Diff를 적용하고, 결과 Index를 반환해요.
시그니처
ts
class Repository {
applyToTree(
tree: Tree,
diff: Diff,
options?: ApplyOptions | null | undefined
): Index;
}파라미터
- tree필수 · Tree
diff를 적용할 트리
- diff필수 · Diff
적용할 diff
- optionsnull | ApplyOptions
apply에 대한 옵션
- checkboolean
실제로 변경하지 않고, 패치가 적용되는지만 테스트해요.
- checkboolean
반환 값
- Index
적용 결과의 postimage
