pub struct PatchFileSet<'a> { /* private fields */ }
Implementations§
Source§impl<'a> PatchFileSet<'a>
impl<'a> PatchFileSet<'a>
pub fn load( target: &'a Repository, patch_dir: &Utf8Path, ) -> Result<Self, PatchError>
pub fn reload_files(&mut self) -> Result<(), PatchError>
Sourcepub fn stage_changes(&mut self) -> Result<(), Error>
pub fn stage_changes(&mut self) -> Result<(), Error>
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.
Auto Trait Implementations§
impl<'a> Freeze for PatchFileSet<'a>
impl<'a> RefUnwindSafe for PatchFileSet<'a>
impl<'a> !Send for PatchFileSet<'a>
impl<'a> !Sync for PatchFileSet<'a>
impl<'a> Unpin for PatchFileSet<'a>
impl<'a> UnwindSafe for PatchFileSet<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more