pub enum Operation<'a> {
InternalDiff {
algorithm: Algorithm,
},
ExternalCommand {
command: &'a BStr,
},
SourceOrDestinationIsBinary,
}
blob
only.Expand description
The kind of operation that was performed during the diff
operation.
Variants§
InternalDiff
Fields
The internal diff algorithm should be called with the provided arguments.
This only happens if none of the resources are binary, and if there is no external diff program configured via git-attributes
or Options::skip_internal_diff_if_external_is_configured
is false
.
Use Outcome::interned_input()
to easily obtain an interner for use with imara_diff::diff()
, or maintain one yourself
for greater reuse.
ExternalCommand
Fields
command: &'a BStr
The command as extracted from Driver::command.
Use it in Platform::prepare_diff_command
to easily prepare a compatible invocation.
Run the external diff program according as configured in the source
-resources driver.
This only happens if Options::skip_internal_diff_if_external_is_configured
was true
, preventing the usage of the internal diff implementation.