pub struct MergeSourcesOptions {
pub ignore_mergeinfo: bool,
pub diff_ignore_ancestry: bool,
pub force_delete: bool,
pub record_only: bool,
pub dry_run: bool,
pub allow_mixed_rev: bool,
pub merge_options: Option<Vec<String>>,
}Expand description
Options for merge_sources operations
Fields§
§ignore_mergeinfo: boolWhether to ignore mergeinfo.
diff_ignore_ancestry: boolWhether to ignore ancestry when comparing trees.
force_delete: boolWhether to force deletion of modified files.
record_only: boolWhether to record merge info but not apply changes.
dry_run: boolWhether to perform a dry run.
allow_mixed_rev: boolWhether to allow mixed revisions.
merge_options: Option<Vec<String>>Array of merge options (like –ignore-eol-style).
Implementations§
Source§impl MergeSourcesOptions
impl MergeSourcesOptions
Sourcepub fn with_ignore_mergeinfo(self, ignore: bool) -> Self
pub fn with_ignore_mergeinfo(self, ignore: bool) -> Self
Sets whether to ignore mergeinfo.
Sourcepub fn with_diff_ignore_ancestry(self, ignore: bool) -> Self
pub fn with_diff_ignore_ancestry(self, ignore: bool) -> Self
Sets whether to ignore ancestry when diffing.
Sourcepub fn with_force_delete(self, force: bool) -> Self
pub fn with_force_delete(self, force: bool) -> Self
Sets whether to force delete modified files.
Sourcepub fn with_record_only(self, record_only: bool) -> Self
pub fn with_record_only(self, record_only: bool) -> Self
Sets whether to record merge info only.
Sourcepub fn with_dry_run(self, dry_run: bool) -> Self
pub fn with_dry_run(self, dry_run: bool) -> Self
Sets whether to perform a dry run.
Sourcepub fn with_allow_mixed_rev(self, allow: bool) -> Self
pub fn with_allow_mixed_rev(self, allow: bool) -> Self
Sets whether to allow mixed revisions.
Sourcepub fn with_merge_options(self, options: Vec<String>) -> Self
pub fn with_merge_options(self, options: Vec<String>) -> Self
Sets the merge options (like “–ignore-eol-style”).
Trait Implementations§
Source§impl Clone for MergeSourcesOptions
impl Clone for MergeSourcesOptions
Source§fn clone(&self) -> MergeSourcesOptions
fn clone(&self) -> MergeSourcesOptions
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MergeSourcesOptions
impl Debug for MergeSourcesOptions
Auto Trait Implementations§
impl Freeze for MergeSourcesOptions
impl RefUnwindSafe for MergeSourcesOptions
impl Send for MergeSourcesOptions
impl Sync for MergeSourcesOptions
impl Unpin for MergeSourcesOptions
impl UnsafeUnpin for MergeSourcesOptions
impl UnwindSafe for MergeSourcesOptions
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more