pub struct DiffOptions {Show 13 fields
pub diff_options: Vec<String>,
pub depth: Depth,
pub ignore_ancestry: bool,
pub no_diff_added: bool,
pub no_diff_deleted: bool,
pub show_copies_as_adds: bool,
pub ignore_content_type: bool,
pub ignore_properties: bool,
pub properties_only: bool,
pub use_git_diff_format: bool,
pub pretty_print_mergeinfo: bool,
pub header_encoding: String,
pub changelists: Option<Vec<String>>,
}Expand description
Options for diff operations
Fields§
§diff_options: Vec<String>Diff-specific options to pass to diff engine.
depth: DepthRecursion depth.
ignore_ancestry: boolWhether to ignore ancestry when calculating diffs.
no_diff_added: boolIf true, don’t show diffs for added files.
no_diff_deleted: boolIf true, don’t show diffs for deleted files.
show_copies_as_adds: boolIf true, show copies as additions.
ignore_content_type: boolIf true, ignore content type.
ignore_properties: boolIf true, ignore properties.
properties_only: boolIf true, show only properties.
use_git_diff_format: boolIf true, use Git diff format.
pretty_print_mergeinfo: boolIf true, pretty-print svn:mergeinfo properties in the diff output.
header_encoding: StringEncoding for headers.
changelists: Option<Vec<String>>Changelists to limit operation to (None means all).
Implementations§
Source§impl DiffOptions
impl DiffOptions
Sourcepub fn with_diff_options(self, diff_options: Vec<String>) -> Self
pub fn with_diff_options(self, diff_options: Vec<String>) -> Self
Sets the diff options.
Sourcepub fn with_depth(self, depth: Depth) -> Self
pub fn with_depth(self, depth: Depth) -> Self
Sets the depth.
Sourcepub fn with_ignore_ancestry(self, ignore_ancestry: bool) -> Self
pub fn with_ignore_ancestry(self, ignore_ancestry: bool) -> Self
Sets whether to ignore ancestry.
Sourcepub fn with_no_diff_added(self, no_diff_added: bool) -> Self
pub fn with_no_diff_added(self, no_diff_added: bool) -> Self
Sets whether to skip diffs for added files.
Sourcepub fn with_no_diff_deleted(self, no_diff_deleted: bool) -> Self
pub fn with_no_diff_deleted(self, no_diff_deleted: bool) -> Self
Sets whether to skip diffs for deleted files.
Sourcepub fn with_show_copies_as_adds(self, show_copies_as_adds: bool) -> Self
pub fn with_show_copies_as_adds(self, show_copies_as_adds: bool) -> Self
Sets whether to show copies as additions.
Sourcepub fn with_ignore_content_type(self, ignore_content_type: bool) -> Self
pub fn with_ignore_content_type(self, ignore_content_type: bool) -> Self
Sets whether to ignore content type.
Sourcepub fn with_ignore_properties(self, ignore_properties: bool) -> Self
pub fn with_ignore_properties(self, ignore_properties: bool) -> Self
Sets whether to ignore properties.
Sourcepub fn with_properties_only(self, properties_only: bool) -> Self
pub fn with_properties_only(self, properties_only: bool) -> Self
Sets whether to show only properties.
Sourcepub fn with_use_git_diff_format(self, use_git_diff_format: bool) -> Self
pub fn with_use_git_diff_format(self, use_git_diff_format: bool) -> Self
Sets whether to use Git diff format.
Sourcepub fn with_header_encoding(self, header_encoding: String) -> Self
pub fn with_header_encoding(self, header_encoding: String) -> Self
Sets the header encoding.
Sourcepub fn with_changelists(self, changelists: Vec<String>) -> Self
pub fn with_changelists(self, changelists: Vec<String>) -> Self
Sets the changelists.
Trait Implementations§
Source§impl Clone for DiffOptions
impl Clone for DiffOptions
Source§fn clone(&self) -> DiffOptions
fn clone(&self) -> DiffOptions
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more