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

Method repository_id

libatomic/src/daemon/state.rs:71–75  ·  view source on GitHub ↗

The persistent repository ID for this daemon: a blake3 digest of the canonical root. Slice limitation: RFC D3 wants IDs assigned at init and recorded in `.atomic` so they survive daemon restarts and follow the repository across daemons; a path digest is stable across restarts of the same layout and unambiguous locally.

(&self)

Source from the content-addressed store, hash-verified

69 /// the repository across daemons; a path digest is stable across
70 /// restarts of the same layout and unambiguous locally.
71 pub fn repository_id(&self) -> Vec<u8> {
72 blake3::hash(self.root.to_string_lossy().as_bytes())
73 .as_bytes()
74 .to_vec()
75 }
76
77 /// The current view, read from the `.atomic/current_view` marker WITHOUT
78 /// opening any database (ResolveRepository is a lookup, not a storage

Callers 5

open_sandboxMethod · 0.80
renew_sandboxMethod · 0.80
close_sandboxMethod · 0.80
repository_refMethod · 0.80
require_targetMethod · 0.80

Calls 2

hashFunction · 0.50
as_bytesMethod · 0.45

Tested by

no test coverage detected