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 | readonly removeWorktree: ( | 84 | readonly removeWorktree: ( |
| 85 | input: VcsRemoveWorktreeInput, | 85 | input: VcsRemoveWorktreeInput, |
| 86 | ) => Effect.Effect<void, GitCommandError>; | 86 | ) => Effect.Effect<void, GitCommandError>; |
| 87 | readonly pruneWorktrees: (input: { | ||
| 88 | readonly cwd: string; | ||
| 89 | }) => Effect.Effect<void, GitCommandError>; | ||
| 87 | readonly createRef: ( | 90 | readonly createRef: ( |
| 88 | input: VcsCreateRefInput, | 91 | input: VcsCreateRefInput, |
| 89 | ) => Effect.Effect<VcsCreateRefResult, GitCommandError>; | 92 | ) => Effect.Effect<VcsCreateRefResult, GitCommandError>; |
| @@ -319,6 +322,10 @@ export const make = Effect.gen(function* () { · 229 unmodified lines | |||
| 319 | ensureGitCommand("GitWorkflowService.removeWorktree", input.cwd).pipe( | 322 | ensureGitCommand("GitWorkflowService.removeWorktree", input.cwd).pipe( |
| 320 | Effect.andThen(git.removeWorktree(input)), | 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 | createRef: (input) => | 329 | createRef: (input) => |
| 323 | ensureGitCommand("GitWorkflowService.createRef", input.cwd).pipe( | 330 | ensureGitCommand("GitWorkflowService.createRef", input.cwd).pipe( |
| 324 | Effect.andThen(git.createRef(input)), | 331 | Effect.andThen(git.createRef(input)), |