Showing the changes to apps/server/src/git (1 of 5 files). Show all
Unified · Split
| @@ -84,6 +84,9 @@ export class GitWorkflowService extends Context.Service< · 83 unmodified lines | ||
| 84 | 84 | readonly removeWorktree: ( |
| 85 | 85 | input: VcsRemoveWorktreeInput, |
| 86 | 86 | ) => Effect.Effect<void, GitCommandError>; |
| 87 | + readonly pruneWorktrees: (input: { | |
| 88 | + readonly cwd: string; | |
| 89 | + }) => Effect.Effect<void, GitCommandError>; | |
| 87 | 90 | readonly createRef: ( |
| 88 | 91 | input: VcsCreateRefInput, |
| 89 | 92 | ) => Effect.Effect<VcsCreateRefResult, GitCommandError>; |
| @@ -319,6 +322,10 @@ export const make = Effect.gen(function* () { · 229 unmodified lines | ||
| 319 | 322 | ensureGitCommand("GitWorkflowService.removeWorktree", input.cwd).pipe( |
| 320 | 323 | Effect.andThen(git.removeWorktree(input)), |
| 321 | 324 | ), |
| 325 | + pruneWorktrees: (input) => | |
| 326 | + ensureGitCommand("GitWorkflowService.pruneWorktrees", input.cwd).pipe( | |
| 327 | + Effect.andThen(git.pruneWorktrees(input)), | |
| 328 | + ), | |
| 322 | 329 | createRef: (input) => |
| 323 | 330 | ensureGitCommand("GitWorkflowService.createRef", input.cwd).pipe( |
| 324 | 331 | Effect.andThen(git.createRef(input)), |