Skip to main content

status_diff_observed

Function status_diff_observed 

Source
pub fn status_diff_observed(
    store: &ObjectStore,
    head_tree: Option<&Hash>,
    worktree_root: &Path,
    index: Option<&Index>,
) -> Result<(Vec<StatusEntry>, Vec<StatObservation>), DiffError>
Expand description

status_diff that additionally returns the worktree walk’s worktree::StatObservations — entries whose cache was absent or racy-smudged but whose re-hash matched the staged hash. Callers (the status CLI) use them to heal the stat cache from hash-time stats; pairing a later stat with the earlier hash is unsound.

§Errors

See status_diff.