Struct git2::RevertOptions
source · pub struct RevertOptions<'cb> { /* private fields */ }
Expand description
Options to specify when reverting
Implementations§
source§impl<'cb> RevertOptions<'cb>
impl<'cb> RevertOptions<'cb>
sourcepub fn new() -> RevertOptions<'cb>
pub fn new() -> RevertOptions<'cb>
Creates a default set of revert 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_revert_options
pub fn raw(&mut self) -> git_revert_options
Obtain the raw struct