pub fn worktree_entry_state(
worktree_root: impl AsRef<Path>,
git_dir: impl AsRef<Path>,
format: ObjectFormat,
path: impl AsRef<Path>,
expected_oid: &ObjectId,
expected_mode: u32,
index_probe: Option<&IndexStatProbe>,
) -> Result<WorktreeEntryState>Expand description
Compare one expected tracked entry to the worktree path named by path.
path is repository-relative and uses the platform path representation. For
callers that already carry git’s byte path form, use
worktree_entry_state_by_git_path.