pub struct MergeOptions { /* private fields */ }
Expand description
Options to specify when merging.
Implementations§
Source§impl 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.