Struct git2::StashApplyOptions
source · pub struct StashApplyOptions<'cb> { /* private fields */ }
Expand description
Stash application options structure
Implementations§
source§impl<'cb> StashApplyOptions<'cb>
impl<'cb> StashApplyOptions<'cb>
sourcepub fn new() -> StashApplyOptions<'cb>
pub fn new() -> StashApplyOptions<'cb>
Creates a default set of merge options.
sourcepub fn reinstantiate_index(&mut self) -> &mut StashApplyOptions<'cb>
pub fn reinstantiate_index(&mut self) -> &mut StashApplyOptions<'cb>
Set stash application flag to GIT_STASH_APPLY_REINSTATE_INDEX
sourcepub fn checkout_options(
&mut self,
opts: CheckoutBuilder<'cb>
) -> &mut StashApplyOptions<'cb>
pub fn checkout_options( &mut self, opts: CheckoutBuilder<'cb> ) -> &mut StashApplyOptions<'cb>
Options to use when writing files to the working directory
sourcepub fn progress_cb<C>(&mut self, callback: C) -> &mut StashApplyOptions<'cb>where
C: FnMut(StashApplyProgress) -> bool + 'cb,
pub fn progress_cb<C>(&mut self, callback: C) -> &mut StashApplyOptions<'cb>where C: FnMut(StashApplyProgress) -> bool + 'cb,
Optional callback to notify the consumer of application progress.
Return true
to continue processing, or false
to
abort the stash application.
sourcepub fn raw(&mut self) -> &git_stash_apply_options
pub fn raw(&mut self) -> &git_stash_apply_options
Pointer to a raw git_stash_apply_options