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)
| 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 | /// |
nothing calls this directly
no outgoing calls
no test coverage detected