pub fn create_initial_commit(&self) -> Result<(), git2::Error> {
        let signature = self.repo.signature()?;
        let oid = self.repo.index()?.write_tree()?;
        let tree = self.repo.find_tree(oid)?;
        self.repo.commit(
            Some("HEAD"),
            &signature,
            &signature,
            "Initial commit",
            &tree,
            &[],
        )?;
        Ok(())
    }
/// Commit the current tree state as an "Initial commit"
Commit the current tree state as an "Initial commit"
Commit the current tree state as an " Initial commit "
pub fn create_initial_commit(&self) -> Result<(), git2::Error> {
        let signature = self.repo.signature()?;
        let oid = self.repo.index()?.write_tree()?;
        let tree = self.repo.find_tree(oid)?;
        self.repo.commit(
            Some("HEAD"),
            &signature,
            &signature,
            "Initial commit",
            &tree,
            &[],
        )?;
        Ok(())
    }
pub fn create_initial_commit ( & self ) -> Result < ( ) , git2 :: Error > { let signature = self . repo . signature ( ) ? ; let oid = self . repo . index ( ) ? . write_tree ( ) ? ; let tree = self . repo . find_tree ( oid ) ? ; self . repo . commit ( Some ( " " ) , & signature , & signature , " " , & tree , & [ ] , ) ? ; Ok ( ( ) ) }
Commit the current tree state as an "Initial commit"
Commit the current tree state as an " Initial commit "
&self