sheepit 0.5.1

A simple rust tool for releasing projects 🚀
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use std::path::Path;
use git2::{Error, Repository};
pub struct GitOpener;

impl GitOpener {
    pub fn new() -> Self {
        GitOpener {}
    }

    pub fn open<P: AsRef<Path>>(&self, path: P) -> Result<Repository, Error> {
        Repository::open(path)
    }
}