pub struct DiffPostprocessOptions {
pub break_score: Option<u64>,
pub rename_threshold: u32,
pub copy_threshold: Option<u32>,
pub find_copies_harder: bool,
pub materialize_break_worktree_new_oid: bool,
}Expand description
Options for Git-style rename, copy, and break-rewrite post-processing on tree diffs.
Fields§
§break_score: Option<u64>When set, --break-rewrites threshold on Git’s internal 0–GIT_DIFF_MAX_SCORE scale
(None = off).
rename_threshold: u32-M similarity threshold (0–100); 100 disables rename detection.
copy_threshold: Option<u32>-C copy threshold (0–100); None skips copy detection.
find_copies_harder: bool-C --find-copies-harder: treat unmodified source-tree paths as copy sources.
materialize_break_worktree_new_oid: boolWhen break-rewrite runs on tree↔worktree diffs, fill new_oid from worktree bytes for
--raw output (matches git diff <tree> -B; leave false for index↔worktree / diff-files).
Trait Implementations§
Source§impl Clone for DiffPostprocessOptions
impl Clone for DiffPostprocessOptions
impl Copy for DiffPostprocessOptions
Source§impl Debug for DiffPostprocessOptions
impl Debug for DiffPostprocessOptions
Auto Trait Implementations§
impl Freeze for DiffPostprocessOptions
impl RefUnwindSafe for DiffPostprocessOptions
impl Send for DiffPostprocessOptions
impl Sync for DiffPostprocessOptions
impl Unpin for DiffPostprocessOptions
impl UnsafeUnpin for DiffPostprocessOptions
impl UnwindSafe for DiffPostprocessOptions
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