Struct git2::MergeOptions
source · [−]pub struct MergeOptions { /* private fields */ }
Expand description
Options to specify when merging.
Implementations
sourceimpl MergeOptions
impl MergeOptions
sourcepub fn new() -> MergeOptions
pub fn new() -> MergeOptions
Creates a default set of merge options.
sourcepub fn find_renames(&mut self, find: bool) -> &mut MergeOptions
pub fn find_renames(&mut self, find: bool) -> &mut MergeOptions
Detect file renames
sourcepub fn fail_on_conflict(&mut self, fail: bool) -> &mut MergeOptions
pub fn fail_on_conflict(&mut self, fail: bool) -> &mut MergeOptions
If a conflict occurs, exit immediately instead of attempting to continue resolving conflicts
sourcepub fn skip_reuc(&mut self, skip: bool) -> &mut MergeOptions
pub fn skip_reuc(&mut self, skip: bool) -> &mut MergeOptions
Do not write the REUC extension on the generated index
sourcepub fn no_recursive(&mut self, disable: bool) -> &mut MergeOptions
pub fn no_recursive(&mut self, disable: bool) -> &mut MergeOptions
If the commits being merged have multiple merge bases, do not build a recursive merge base (by merging the multiple merge bases), instead simply use the first base.
sourcepub fn rename_threshold(&mut self, thresh: u32) -> &mut MergeOptions
pub fn rename_threshold(&mut self, thresh: u32) -> &mut MergeOptions
Similarity to consider a file renamed (default 50)
sourcepub fn target_limit(&mut self, limit: u32) -> &mut MergeOptions
pub fn target_limit(&mut self, limit: u32) -> &mut MergeOptions
Maximum similarity sources to examine for renames (default 200).
If the number of rename candidates (add / delete pairs) is greater
than this value, inexact rename detection is aborted. This setting
overrides the merge.renameLimit
configuration value.
sourcepub fn recursion_limit(&mut self, limit: u32) -> &mut MergeOptions
pub fn recursion_limit(&mut self, limit: u32) -> &mut MergeOptions
Maximum number of times to merge common ancestors to build a virtual merge base when faced with criss-cross merges. When this limit is reached, the next ancestor will simply be used instead of attempting to merge it. The default is unlimited.
sourcepub fn file_favor(&mut self, favor: FileFavor) -> &mut MergeOptions
pub fn file_favor(&mut self, favor: FileFavor) -> &mut MergeOptions
Specify a side to favor for resolving conflicts
sourcepub fn standard_style(&mut self, standard: bool) -> &mut MergeOptions
pub fn standard_style(&mut self, standard: bool) -> &mut MergeOptions
Create standard conflicted merge files
sourcepub fn diff3_style(&mut self, diff3: bool) -> &mut MergeOptions
pub fn diff3_style(&mut self, diff3: bool) -> &mut MergeOptions
Create diff3-style file
sourcepub fn simplify_alnum(&mut self, simplify: bool) -> &mut MergeOptions
pub fn simplify_alnum(&mut self, simplify: bool) -> &mut MergeOptions
Condense non-alphanumeric regions for simplified diff file
sourcepub fn ignore_whitespace(&mut self, ignore: bool) -> &mut MergeOptions
pub fn ignore_whitespace(&mut self, ignore: bool) -> &mut MergeOptions
Ignore all whitespace
sourcepub fn ignore_whitespace_change(&mut self, ignore: bool) -> &mut MergeOptions
pub fn ignore_whitespace_change(&mut self, ignore: bool) -> &mut MergeOptions
Ignore changes in amount of whitespace
sourcepub fn ignore_whitespace_eol(&mut self, ignore: bool) -> &mut MergeOptions
pub fn ignore_whitespace_eol(&mut self, ignore: bool) -> &mut MergeOptions
Ignore whitespace at end of line
sourcepub fn patience(&mut self, patience: bool) -> &mut MergeOptions
pub fn patience(&mut self, patience: bool) -> &mut MergeOptions
Use the “patience diff” algorithm
sourcepub fn minimal(&mut self, minimal: bool) -> &mut MergeOptions
pub fn minimal(&mut self, minimal: bool) -> &mut MergeOptions
Take extra time to find minimal diff
sourcepub unsafe fn raw(&self) -> *const git_merge_options
pub unsafe fn raw(&self) -> *const git_merge_options
Acquire a pointer to the underlying raw options.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for MergeOptions
impl !Send for MergeOptions
impl !Sync for MergeOptions
impl Unpin for MergeOptions
impl UnwindSafe for MergeOptions
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more