()
| 4200 | } |
| 4201 | |
| 4202 | async fn reset_worktree() -> Result<Json<bool>> { |
| 4203 | let cwd = std::env::current_dir().map_err(|e| ApiError::BadRequest(e.to_string()))?; |
| 4204 | |
| 4205 | worktree::prune_worktrees(&cwd).map_err(|e| ApiError::BadRequest(e.to_string()))?; |
| 4206 | |
| 4207 | Ok(Json(true)) |
| 4208 | } |
| 4209 | |
| 4210 | #[derive(Debug, Serialize)] |
| 4211 | pub struct ResourceInfo { |
nothing calls this directly
no test coverage detected