pub struct Workspace {
pub repo_path: PathBuf,
pub vcs: VcsKind,
pub workspace_path: PathBuf,
pub head_id: String,
pub status: Status,
pub tip: ReviewKey,
pub version: String,
}Expand description
A local worktree/workspace fetched for a stack of reviews (a lone review is a stack of one) -
absent until the user explicitly asks for one (rq fetch, or the open-locally hotkey in rq show’s TUI), since sync no longer creates these on its own. Stored in State::workspaces,
keyed by a stable stack id; member reviews point at it via ReviewEntry::stack_id.
Fields§
§repo_path: PathBufCanonical repo this workspace was created from (may be a tool-managed clone or a discovered workdir checkout). Kept even if a later scan points elsewhere.
vcs: VcsKind§workspace_path: PathBuf§head_id: StringThe stack tip’s commit id, i.e. what the workspace was built to. The user may have moved
to an earlier patch in the stack since (see Vcs::position) - that isn’t “dirty”.
status: Status§tip: ReviewKeyThe stack’s top-most review as of the last build. A different tip (a new patch landed on top of the stack) means the workspace needs rebuilding.
version: StringThe tip’s version as of the last build; a change means some patch in the stack changed.