MCPcopy Index your code
hub / github.com/GraphiteEditor/Graphite / embed_resource_sources

Method embed_resource_sources

document/graph-storage/src/session.rs:107–130  ·  view source on GitHub ↗

Commit an `AddSource(Embedded)` retired delta for each given resource, making it the highest- precedence fallback. Skips resources that already have an `Embedded` source or no longer exist. Used on a throwaway session clone at export time so the exported registry and history agree; callers must guarantee the bytes are available in the export's resource store.

(&mut self, ids: impl IntoIterator<Item = ResourceId>)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Calls 7

has_embedded_sourceMethod · 0.80
commit_opsMethod · 0.80
apply_op_idempotentMethod · 0.80
getMethod · 0.65
pushMethod · 0.45
cloneMethod · 0.45