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

Function init_repo

atomic-cli/src/commands/intent/new.rs:190–195  ·  view source on GitHub ↗

A fresh repository with an initialized vault.

()

Source from the content-addressed store, hash-verified

188
189 /// A fresh repository with an initialized vault.
190 fn init_repo() -> (Repository, tempfile::TempDir) {
191 let dir = tempdir().unwrap();
192 let repo = Repository::init(dir.path()).unwrap();
193 repo.init_vault().unwrap();
194 (repo, dir)
195 }
196
197 /// The classification mirrored into the manifest `IntentSummary.kind` — the
198 /// exact field `intent list`/`show` read without lifting.

Calls 4

initFunction · 0.50
unwrapMethod · 0.45
pathMethod · 0.45
init_vaultMethod · 0.45