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

Function require_repository_readonly

atomic-cli/src/commands/mod.rs:471–473  ·  view source on GitHub ↗

Open a repository strictly read-only or return a user-friendly error.

(path: Option<&Path>)

Source from the content-addressed store, hash-verified

469
470/// Open a repository strictly read-only or return a user-friendly error.
471pub fn require_repository_readonly(path: Option<&Path>) -> CliResult<Repository> {
472 open_repository_readonly(path)
473}
474
475/// Open a repository for native-index checking without implicit migration.
476pub fn require_repository_for_native_check(path: Option<&Path>) -> CliResult<Repository> {

Callers 2

runMethod · 0.85
runMethod · 0.85

Calls 1

open_repository_readonlyFunction · 0.85

Tested by

no test coverage detected