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

Method open

atomic-repository/src/repository/mod.rs:567–569  ·  view source on GitHub ↗

Open an existing repository. This searches for a `.atomic` directory starting from the given path and walking up to parent directories. # Arguments `path` - A path inside the repository (or the repository root) A repository in the legacy `pristine.redb` + `changes.redb` layout is merged into `atomic.redb` first (see [`ensure_database`]). A database held by another process is waited on for a fe

(path: P)

Source from the content-addressed store, hash-verified

565 ///
566 /// Returns an error if no repository is found.
567 pub fn open<P: AsRef<Path>>(path: P) -> Result<Self, RepositoryError> {
568 Self::open_with_budget(path, ReconcileEffectBudget::Command)
569 }
570
571 /// Open an existing repository under an explicit effect budget (CB-13D).
572 ///

Callers 15

run_exampleFunction · 0.45
try_lock_fileFunction · 0.45
acquireMethod · 0.45
copy_entryFunction · 0.45
write_new_syncedFunction · 0.45
commit_migrationFunction · 0.45

Calls

no outgoing calls