pub enum Driver {
Builtin,
Command {
line: String,
args: Vec<String>,
},
}Expand description
How three-way merges are performed; written as its driver line, checked as it is read, so a
mistake points into the file that holds it.
Variants§
Builtin
A line merge, diffy’s.
Command
A program, on git’s merge-driver convention.
%O is the ancestor, %A the local version and where the result is left, %B the
incoming version, %P the path; %% is %. Exit zero means merged cleanly.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Driver
impl<'de> Deserialize<'de> for Driver
Source§fn deserialize<__D>(deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Driver
Source§impl FromStr for Driver
The driver a driver line names, split as a POSIX shell would; no shell ever runs it.
impl FromStr for Driver
The driver a driver line names, split as a POSIX shell would; no shell ever runs it.
Fails with MergeError::Driver when quotes are unbalanced, a placeholder is unknown, or
%A is missing.
impl StructuralPartialEq for Driver
Auto Trait Implementations§
impl Freeze for Driver
impl RefUnwindSafe for Driver
impl Send for Driver
impl Sync for Driver
impl Unpin for Driver
impl UnsafeUnpin for Driver
impl UnwindSafe for Driver
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.