Struct git2::RevertOptions [−][src]
pub struct RevertOptions<'cb> { /* fields omitted */ }Expand description
Options to specify when reverting
Implementations
impl<'cb> RevertOptions<'cb>[src]
impl<'cb> RevertOptions<'cb>[src]pub fn new() -> RevertOptions<'cb>[src]
pub fn new() -> RevertOptions<'cb>[src]Creates a default set of revert options
pub fn mainline(&mut self, mainline: u32) -> &mut Self[src]
pub fn mainline(&mut self, mainline: u32) -> &mut Self[src]Set the mainline value
For merge commits, the “mainline” is treated as the parent.
pub fn checkout_builder(&mut self, cb: CheckoutBuilder<'cb>) -> &mut Self[src]
pub fn checkout_builder(&mut self, cb: CheckoutBuilder<'cb>) -> &mut Self[src]Set the checkout builder
pub fn merge_opts(&mut self, merge_opts: MergeOptions) -> &mut Self[src]
pub fn merge_opts(&mut self, merge_opts: MergeOptions) -> &mut Self[src]Set the merge options
pub fn raw(&mut self) -> git_revert_options[src]
pub fn raw(&mut self) -> git_revert_options[src]Obtain the raw struct