pub struct MergeFileOptions { /* private fields */ }Expand description
Options for merging a file.
Implementations§
Source§impl MergeFileOptions
impl MergeFileOptions
Sourcepub fn new() -> MergeFileOptions
pub fn new() -> MergeFileOptions
Creates a default set of merge file options.
Sourcepub fn ancestor_label<T: IntoCString>(&mut self, t: T) -> &mut MergeFileOptions
pub fn ancestor_label<T: IntoCString>(&mut self, t: T) -> &mut MergeFileOptions
Label for the ancestor file side of the conflict which will be prepended to labels in diff3-format merge files.
Sourcepub fn our_label<T: IntoCString>(&mut self, t: T) -> &mut MergeFileOptions
pub fn our_label<T: IntoCString>(&mut self, t: T) -> &mut MergeFileOptions
Label for our file side of the conflict which will be prepended to labels in merge files.
Sourcepub fn their_label<T: IntoCString>(&mut self, t: T) -> &mut MergeFileOptions
pub fn their_label<T: IntoCString>(&mut self, t: T) -> &mut MergeFileOptions
Label for their file side of the conflict which will be prepended to labels in merge files.
Sourcepub fn favor(&mut self, favor: FileFavor) -> &mut MergeFileOptions
pub fn favor(&mut self, favor: FileFavor) -> &mut MergeFileOptions
Specify a side to favor for resolving conflicts
Sourcepub fn style_standard(&mut self, standard: bool) -> &mut MergeFileOptions
pub fn style_standard(&mut self, standard: bool) -> &mut MergeFileOptions
Create standard conflicted merge files
Sourcepub fn style_diff3(&mut self, diff3: bool) -> &mut MergeFileOptions
pub fn style_diff3(&mut self, diff3: bool) -> &mut MergeFileOptions
Create diff3-style file
Sourcepub fn simplify_alnum(&mut self, simplify: bool) -> &mut MergeFileOptions
pub fn simplify_alnum(&mut self, simplify: bool) -> &mut MergeFileOptions
Condense non-alphanumeric regions for simplified diff file
Sourcepub fn ignore_whitespace(&mut self, ignore: bool) -> &mut MergeFileOptions
pub fn ignore_whitespace(&mut self, ignore: bool) -> &mut MergeFileOptions
Ignore all whitespace
Sourcepub fn ignore_whitespace_change(
&mut self,
ignore: bool,
) -> &mut MergeFileOptions
pub fn ignore_whitespace_change( &mut self, ignore: bool, ) -> &mut MergeFileOptions
Ignore changes in amount of whitespace
Sourcepub fn ignore_whitespace_eol(&mut self, ignore: bool) -> &mut MergeFileOptions
pub fn ignore_whitespace_eol(&mut self, ignore: bool) -> &mut MergeFileOptions
Ignore whitespace at end of line
Sourcepub fn patience(&mut self, patience: bool) -> &mut MergeFileOptions
pub fn patience(&mut self, patience: bool) -> &mut MergeFileOptions
Use the “patience diff” algorithm
Sourcepub fn minimal(&mut self, minimal: bool) -> &mut MergeFileOptions
pub fn minimal(&mut self, minimal: bool) -> &mut MergeFileOptions
Take extra time to find minimal diff
Sourcepub fn style_zdiff3(&mut self, zdiff3: bool) -> &mut MergeFileOptions
pub fn style_zdiff3(&mut self, zdiff3: bool) -> &mut MergeFileOptions
Create zdiff3 (“zealous diff3”)-style files
Sourcepub fn accept_conflicts(&mut self, accept: bool) -> &mut MergeFileOptions
pub fn accept_conflicts(&mut self, accept: bool) -> &mut MergeFileOptions
Do not produce file conflicts when common regions have changed
Sourcepub fn marker_size(&mut self, size: u16) -> &mut MergeFileOptions
pub fn marker_size(&mut self, size: u16) -> &mut MergeFileOptions
The size of conflict markers (eg, “<<<<<<<”). Default is 7.