aboutsummaryrefslogtreecommitdiff
path: root/src/app/creation.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/app/creation.rs')
-rw-r--r--src/app/creation.rs9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/app/creation.rs b/src/app/creation.rs
index 2bfe389b..4d91e250 100644
--- a/src/app/creation.rs
+++ b/src/app/creation.rs
@@ -325,6 +325,15 @@ impl App {
.public_tab_id(index, ws.active_tab)
.unwrap_or_else(|| format!("{}:{}", ws.id, ws.active_tab + 1)),
agent_status: pane_agent_status(agg_state, seen),
+ worktree: ws
+ .worktree_space()
+ .map(|space| crate::api::schema::WorkspaceWorktreeInfo {
+ repo_key: space.key.clone(),
+ repo_name: space.label.clone(),
+ repo_root: space.repo_root.display().to_string(),
+ checkout_path: space.checkout_path.display().to_string(),
+ is_linked_worktree: space.is_linked_worktree,
+ }),
}
}
}