Skip to main content

worktree_entry_state_by_git_path

Function worktree_entry_state_by_git_path 

Source
pub fn worktree_entry_state_by_git_path(
    worktree_root: impl AsRef<Path>,
    git_dir: impl AsRef<Path>,
    format: ObjectFormat,
    git_path: &[u8],
    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 a repository-relative git path (/ separators, raw bytes).

The comparison uses the same clean-filter, symlink-target, gitlink, and racy-clean stat shortcut rules as stream_short_status_with_options.