gitoxide-core 0.9.0

The library implementating all capabilities of the gitoxide CLI
Documentation
1
2
3
4
5
6
use anyhow::{Context as AnyhowContext, Result};
use std::path::PathBuf;

pub fn init(directory: Option<PathBuf>) -> Result<()> {
    git_repository::init::repository(directory).with_context(|| "Repository initialization failed")
}