pub fn stage_changes(&mut self) -> Result<(), git2::Error> {
        let mut index = self.root_repo.index()?;
        index.add_all(&[&self.patch_dir], git2::IndexAddOption::DEFAULT, None)?;
        index.write()
    }
/// Stage any changes to patch files
///
/// This implicitly discards any previously staged changes to the patch files.
/// The gitpatcher system considers the target repo to be
/// the authoritative source of changes.
/// As long as you keep your changes saved in that repo, you'll be fine.
Stage any changes to patch files
This implicitly discards any previously staged changes to the patch files.
The gitpatcher system considers the target repo to be
the authoritative source of changes.
As long as you keep your changes saved in that repo, you'll be fine.
Stage any changes to patch files This implicitly discards any previously staged changes to the patch files . The gitpatcher system considers the target repo to be the authoritative source of changes . As long as you keep your changes saved in that repo you ' ll be fine .
pub fn stage_changes(&mut self) -> Result<(), git2::Error> {
        let mut index = self.root_repo.index()?;
        index.add_all(&[&self.patch_dir], git2::IndexAddOption::DEFAULT, None)?;
        index.write()
    }
pub fn stage_changes ( & mut self ) -> Result < ( ) , git2 :: Error > { let mut index = self . root_repo . index ( ) ? ; index . add_all ( & [ & self . patch_dir ] , git2 :: IndexAddOption :: DEFAULT , None ) ? ; index . write ( ) }
Stage any changes to patch files
This implicitly discards any previously staged changes to the patch files.
Stage any changes to patch files This implicitly discards any previously staged changes to the patch files .
&mut self