pub struct CherrypickOptions<'cb> { /* private fields */ }
Expand description
Options to specify when cherry picking
Implementations§
Source§impl<'cb> CherrypickOptions<'cb>
impl<'cb> CherrypickOptions<'cb>
Sourcepub fn new() -> CherrypickOptions<'cb>
pub fn new() -> CherrypickOptions<'cb>
Creates a default set of cherrypick options
Sourcepub fn mainline(&mut self, mainline: u32) -> &mut Self
pub fn mainline(&mut self, mainline: u32) -> &mut Self
Set the mainline value
For merge commits, the “mainline” is treated as the parent.
Sourcepub fn checkout_builder(&mut self, cb: CheckoutBuilder<'cb>) -> &mut Self
pub fn checkout_builder(&mut self, cb: CheckoutBuilder<'cb>) -> &mut Self
Set the checkout builder
Sourcepub fn merge_opts(&mut self, merge_opts: MergeOptions) -> &mut Self
pub fn merge_opts(&mut self, merge_opts: MergeOptions) -> &mut Self
Set the merge options
Sourcepub fn raw(&mut self) -> git_cherrypick_options
pub fn raw(&mut self) -> git_cherrypick_options
Obtain the raw struct
Auto Trait Implementations§
impl<'cb> Freeze for CherrypickOptions<'cb>
impl<'cb> !RefUnwindSafe for CherrypickOptions<'cb>
impl<'cb> !Send for CherrypickOptions<'cb>
impl<'cb> !Sync for CherrypickOptions<'cb>
impl<'cb> Unpin for CherrypickOptions<'cb>
impl<'cb> !UnwindSafe for CherrypickOptions<'cb>
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