Struct git2::ApplyOptions [−][src]
pub struct ApplyOptions<'cb> { /* fields omitted */ }Expand description
Options to specify when applying a diff
Implementations
impl<'cb> ApplyOptions<'cb>[src]
impl<'cb> ApplyOptions<'cb>[src]pub fn check(&mut self, check: bool) -> &mut Self[src]
pub fn check(&mut self, check: bool) -> &mut Self[src]Don’t actually make changes, just test that the patch applies.
pub fn hunk_callback<F>(&mut self, cb: F) -> &mut Self where
F: FnMut(Option<DiffHunk<'_>>) -> bool + 'cb, [src]
pub fn hunk_callback<F>(&mut self, cb: F) -> &mut Self where
F: FnMut(Option<DiffHunk<'_>>) -> bool + 'cb, [src]When applying a patch, callback that will be made per hunk.
pub fn delta_callback<F>(&mut self, cb: F) -> &mut Self where
F: FnMut(Option<DiffDelta<'_>>) -> bool + 'cb, [src]
pub fn delta_callback<F>(&mut self, cb: F) -> &mut Self where
F: FnMut(Option<DiffDelta<'_>>) -> bool + 'cb, [src]When applying a patch, callback that will be made per delta (file).
pub unsafe fn raw(&mut self) -> *const git_apply_options[src]
pub unsafe fn raw(&mut self) -> *const git_apply_options[src]Pointer to a raw git_stash_apply_options