pub fn diff_index_to_worktree_with_options(
odb: &Odb,
index: &Index,
work_tree: &Path,
options: DiffIndexToWorktreeOptions,
) -> Result<Vec<DiffEntry>>Expand description
Compare the index against the working tree with optional racy-timestamp context.
This variant enables a stat-trust fast path: if an entry’s stat tuple matches and the mode is unchanged, the worktree blob hash is skipped unless the entry is racy relative to the supplied index mtime.
§Parameters
odb— object database (for hashing worktree files).index— the current index.work_tree— path to the working tree root.options— optional context for racy timestamp checks.
§Errors
Returns errors from I/O or hashing.