pub struct BulkPatchApply<'repo> { /* private fields */ }
Implementations§
Source§impl<'repo> BulkPatchApply<'repo>
impl<'repo> BulkPatchApply<'repo>
pub fn new( logger: &Logger, target_repo: &'repo Repository, patch_dir: PathBuf, ) -> Self
Sourcepub fn reset_upstream(
&self,
upstream_name: &str,
) -> Result<(), ResetUpstreamError>
pub fn reset_upstream( &self, upstream_name: &str, ) -> Result<(), ResetUpstreamError>
Reset the target repository to the specified upstream reference.
This should be done before applying the patches.
It is used to implement the --upstream
option for the command line.
Sourcepub fn apply_all(self) -> Result<(), BulkApplyError>
pub fn apply_all(self) -> Result<(), BulkApplyError>
Apply all the patches in the directory.
Auto Trait Implementations§
impl<'repo> Freeze for BulkPatchApply<'repo>
impl<'repo> RefUnwindSafe for BulkPatchApply<'repo>
impl<'repo> !Send for BulkPatchApply<'repo>
impl<'repo> !Sync for BulkPatchApply<'repo>
impl<'repo> Unpin for BulkPatchApply<'repo>
impl<'repo> UnwindSafe for BulkPatchApply<'repo>
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