pub enum BuiltinDriver {
Text,
Binary,
Union,
}
Expand description
Define a built-in way of performing a three-way merge, including auto-resolution support.
Some values are related to diffing, some are related to conversions.
Variants§
Text
Perform a merge between text-sources such that conflicts are marked according to
merge.conflictStyle
in the Git configuration.
If any of the inputs, base, ours or theirs looks like non-text/binary,
the Binary
driver will be used instead.
Also see builtin_driver::text::ConflictStyle
.
Binary
Merge ‘unmergable’ content by choosing ours or theirs, without performing an actual merge.
Note that if the merge operation is for virtual ancestor (a merge for merge-bases), then ours will always be chosen.
Union
Merge text-sources and resolve conflicts by adding conflicting lines one after another, in random order, without adding conflict markers either.
This can be useful for files that change a lot, but will remain usable merely by adding all changed lines.
Implementations§
Trait Implementations§
source§impl Clone for BuiltinDriver
impl Clone for BuiltinDriver
source§fn clone(&self) -> BuiltinDriver
fn clone(&self) -> BuiltinDriver
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for BuiltinDriver
impl Debug for BuiltinDriver
source§impl Default for BuiltinDriver
impl Default for BuiltinDriver
source§fn default() -> BuiltinDriver
fn default() -> BuiltinDriver
source§impl Hash for BuiltinDriver
impl Hash for BuiltinDriver
source§impl Ord for BuiltinDriver
impl Ord for BuiltinDriver
source§fn cmp(&self, other: &BuiltinDriver) -> Ordering
fn cmp(&self, other: &BuiltinDriver) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
source§impl PartialEq for BuiltinDriver
impl PartialEq for BuiltinDriver
source§impl PartialOrd for BuiltinDriver
impl PartialOrd for BuiltinDriver
impl Copy for BuiltinDriver
impl Eq for BuiltinDriver
impl StructuralPartialEq for BuiltinDriver
Auto Trait Implementations§
impl Freeze for BuiltinDriver
impl RefUnwindSafe for BuiltinDriver
impl Send for BuiltinDriver
impl Sync for BuiltinDriver
impl Unpin for BuiltinDriver
impl UnwindSafe for BuiltinDriver
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)