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

Method try_lock_git_import_for_span

atomic-repository/src/repository/locks.rs:185–190  ·  view source on GitHub ↗

Hold the common lock for an explicitly span-aware Git import. Existing databases must already require the span capability; an unreadable or unsupported database is refused before writable recovery.

(
        path: P,
        dry_run: bool,
    )

Source from the content-addressed store, hash-verified

183 /// databases must already require the span capability; an unreadable or
184 /// unsupported database is refused before writable recovery.
185 pub fn try_lock_git_import_for_span<P: AsRef<Path>>(
186 path: P,
187 dry_run: bool,
188 ) -> Result<Option<GitImportPreflightGuard>, RepositoryError> {
189 Self::try_lock_git_import_preflight(path, dry_run, true)
190 }
191
192 fn try_lock_git_import_preflight<P: AsRef<Path>>(
193 path: P,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected