aboutsummaryrefslogtreecommitdiff
path: root/src/app/creation.rs
diff options
context:
space:
mode:
authorOgulcan Celik <ogulcancelik@gmail.com>2026-05-23 15:11:48 +0300
committerOgulcan Celik <ogulcancelik@gmail.com>2026-05-23 15:19:36 +0300
commit9817820af1f0468402934122538f658299ff71de (patch)
tree1bf668cf866213d10eec30a85401aedc54fb714f /src/app/creation.rs
parented11779fcaebea7cc3223c4e221ea43674057891 (diff)
feat: add worktree cli and socket api
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,
+ }),
}
}
}