pub fn worktree_differs_from_index_entry(
odb: &Odb,
work_tree: &Path,
ie: &IndexEntry,
ignore_submodule_untracked: bool,
) -> Result<bool>Expand description
Quick stat check: does the index entry’s cached stat data match the file?
Returns true when the file at ie’s path differs from the index entry (mode or blob).
Used by commands such as git mv to detect “dirty” paths under sparse checkout.
Symlinks and submodules are compared in a Git-compatible way.
ignore_submodule_untracked mirrors diff_index_to_worktree’s same flag for gitlinks.