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

Method init

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

Initialize a new repository at the given path. This creates the `.atomic` directory structure and initializes the database with an empty graph. # Arguments `path` - The directory to initialize as a repository # Errors Returns an error if: - A repository already exists at the path - The directory cannot be created - The database cannot be initialized

(path: P)

Source from the content-addressed store, hash-verified

435 /// - The directory cannot be created
436 /// - The database cannot be initialized
437 pub fn init<P: AsRef<Path>>(path: P) -> Result<Self, RepositoryError> {
438 Self::init_with_view(path, DEFAULT_VIEW)
439 }
440
441 /// Initialize a new repository whose default view has the given name.
442 ///

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected