MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / new

Method new

atomic-repository/src/repository/content.rs:1124–1131  ·  view source on GitHub ↗
(txn: &'a T, store: &'a C, visibility: &'a GraphVisibilityClosure)

Source from the content-addressed store, hash-verified

1122 C: atomic_core::change::ChangeStore,
1123{
1124 pub(super) fn new(txn: &'a T, store: &'a C, visibility: &'a GraphVisibilityClosure) -> Self {
1125 Self {
1126 txn,
1127 store,
1128 visibility,
1129 context: std::sync::OnceLock::new(),
1130 }
1131 }
1132
1133 /// Render `inode` through the shared context when its span root is
1134 /// visible; `None` means the file is graph-origin and must be read from

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected