use std::path::PathBuf; use anyhow::{Context as AnyhowContext, Result}; pub fn init(directory: Option) -> Result { git_repository::path::create::into(directory.unwrap_or_default(), git_repository::Kind::WorkTree) .with_context(|| "Repository initialization failed") }