pub fn init(root: impl AsRef<Path>) -> Result<Self, git2::Error> {
        let repo = git2::Repository::init(root)?;

        Ok(Repository { repo })
    }
/// Initialise a new git repository at the given path.
Initialise a new git repository at the given path.
Initialise a new git repository at the given path .
pub fn init(root: impl AsRef<Path>) -> Result<Self, git2::Error> {
        let repo = git2::Repository::init(root)?;
        Ok(Repository { repo })
    }
pub fn init ( root : impl AsRef < Path > ) -> Result < Self , git2 :: Error > { let repo = git2 :: Repository :: init ( root ) ? ; Ok ( Repository { repo } ) }
Initialise a new git repository at the given path.
Initialise a new git repository at the given path .
root
impl AsRef<Path>