wang_utils_git 0.6.3

个人使用的rust工具库
Documentation
1
2
3
4
5
6
7
use git2::Repository;
use std::path::Path;

pub fn git_init<P: AsRef<Path>>(path: P) -> anyhow::Result<Repository> {
    let repo = Repository::init(path)?;
    Ok(repo)
}