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

Method open

atomic-repository/src/repository/mod.rs:554–556  ·  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

552 ///
553 /// Returns an error if no repository is found.
554 pub fn open<P: AsRef<Path>>(path: P) -> Result<Self, RepositoryError> {
555 Self::open_with_budget(path, ReconcileEffectBudget::Command)
556 }
557
558 /// Open an existing repository under an explicit effect budget (CB-13D).
559 ///

Callers 15

try_lock_fileFunction · 0.45
acquireMethod · 0.45
copy_entryFunction · 0.45
write_new_syncedFunction · 0.45
commit_migrationFunction · 0.45
atomic_writeFunction · 0.45
emitMethod · 0.45

Calls

no outgoing calls