Checks the listing and the directory reading against the recorded
worktree. Succeeds with the recorded path's entry when the directory is
present with the recorded git directory and common directory, and the
entry is on refs/heads/<branch> and locked. Otherwise fails with every
condition that does not hold, in vocabulary order. When the path is not
listed, that is the only one reported; when the directory is absent,
its identity is not reported. A detached entry is not on the branch.
Paths compare as exact strings, with no normalizing. A recorded
worktree with an empty field fails with WorktreeRecordInvalid
and nothing is checked.
Checks the listing and the directory reading against the recorded worktree. Succeeds with the recorded path's entry when the directory is present with the recorded git directory and common directory, and the entry is on
refs/heads/<branch>and locked. Otherwise fails with every condition that does not hold, in vocabulary order. When the path is not listed, that is the only one reported; when the directory is absent, its identity is not reported. A detached entry is not on the branch. Paths compare as exact strings, with no normalizing. A recorded worktree with an empty field fails with WorktreeRecordInvalid and nothing is checked.