Expand description
Patches in the include’s own configuration (patch.ts):
{ insert: [...] } / { id, insert: [...] } appends entries (to the
root or a group); { id, name?, ...keys } overrides keys of an entry.
Structs§
- Patch
Index - Where every entry and key of a patched tree comes from.
- Patched
Enums§
- Owner
- Who supplies an entry, or one key of it, in the patched tree.
Functions§
- apply_
patches - Overlays
patchesonto a copy ofdata, building the ownership index in the same pass (a patch that does not apply owns nothing). Anonymous entries of a group config a patch supplies get their ids on the patch itself, so that they keep them on the next application. - ensure_
ids - Gives every entry (nested groups included) an id, in place.
- ensure_
insert_ ids - Runtime changes are routed back to an inserted entry by its id, so every insert needs one.
- route_
journal - Routes a journal to its owners: file-owned changes go into
data, patch-owned ones intopatches. Returns whether any patch changed.