WorkspaceGitEntry
Parameters and properties
Section titled “Parameters and properties”The fields below cover all variants; the signature specifies their allowed combinations.
nameRequiredstringBasename of the entry, or the full object key for a transport inventory.pathRequiredstringHost path of the entry, or the object key for a transport inventory.stateRequired"registered" | "unregistered" | "unavailable" | "skipped"registered: a Git worktree of this repository; unregistered: not listed by git worktree list; skipped: not a directory; unavailable: inspection failed, see reason.headVariant-dependentstringHEAD commit listed by git worktree list.branchVariant-dependentstring | nullWorktree branch name, or null when HEAD is detached.dirtyVariant-dependentbooleantrue when git status reports tracked or untracked changes. Ignored files do not count.lockedVariant-dependentbooleanWhether Git marks the worktree as locked.reasonVariant-dependentstringWhy the state is skipped (NOT_DIRECTORY) or unavailable, such as WORKSPACE_CHANGED, REGISTRATION_MISMATCH or GIT_INSPECTION_FAILED.