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

Method new

atomic-repository/src/change_source/token.rs:51–56  ·  view source on GitHub ↗
(atomic_dir: &'a Path, working_copy: WorkingCopyId)

Source from the content-addressed store, hash-verified

49
50impl<'a> ChangeSourceTokenStore<'a> {
51 pub fn new(atomic_dir: &'a Path, working_copy: WorkingCopyId) -> Self {
52 Self {
53 atomic_dir,
54 working_copy,
55 }
56 }
57
58 pub fn load(&self, source: ChangeSourceKind) -> Result<TokenLoadResult, TokenStoreError> {
59 if !matches!(

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected