()
| 4164 | } |
| 4165 | |
| 4166 | async fn list_worktrees() -> Json<Vec<WorktreeInfo>> { |
| 4167 | let cwd = std::env::current_dir().unwrap_or_default(); |
| 4168 | let worktrees = worktree::list_worktrees(&cwd).unwrap_or_default(); |
| 4169 | Json(worktrees.into_iter().map(|w| w.into()).collect()) |
| 4170 | } |
| 4171 | |
| 4172 | #[derive(Debug, Deserialize)] |
| 4173 | pub struct CreateWorktreeRequest { |
nothing calls this directly
no outgoing calls
no test coverage detected