pub struct DiffIndexToWorktreeOptions {
pub index_mtime: Option<(u32, u32)>,
pub ignore_submodule_untracked: bool,
pub simplify_gitlinks: bool,
}Expand description
Additional inputs for diff_index_to_worktree_with_options.
Fields§
§index_mtime: Option<(u32, u32)>Optional index mtime pair (sec, nsec) sampled when the index was read.
When provided, entries with matching stat data are still considered dirty candidates if
their recorded mtime is “racy” (at or after this timestamp), matching Git’s
is_racy_timestamp behavior.
ignore_submodule_untracked: boolWhen true, gitlink entries are not dirty solely from untracked files inside the submodule.
simplify_gitlinks: boolWhen true, nested gitlink entries only compare the submodule checkout HEAD to the recorded OID.
Trait Implementations§
Source§impl Clone for DiffIndexToWorktreeOptions
impl Clone for DiffIndexToWorktreeOptions
Source§fn clone(&self) -> DiffIndexToWorktreeOptions
fn clone(&self) -> DiffIndexToWorktreeOptions
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DiffIndexToWorktreeOptions
impl Debug for DiffIndexToWorktreeOptions
Source§impl Default for DiffIndexToWorktreeOptions
impl Default for DiffIndexToWorktreeOptions
Source§fn default() -> DiffIndexToWorktreeOptions
fn default() -> DiffIndexToWorktreeOptions
Returns the “default value” for a type. Read more
impl Copy for DiffIndexToWorktreeOptions
Auto Trait Implementations§
impl Freeze for DiffIndexToWorktreeOptions
impl RefUnwindSafe for DiffIndexToWorktreeOptions
impl Send for DiffIndexToWorktreeOptions
impl Sync for DiffIndexToWorktreeOptions
impl Unpin for DiffIndexToWorktreeOptions
impl UnsafeUnpin for DiffIndexToWorktreeOptions
impl UnwindSafe for DiffIndexToWorktreeOptions
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