Commit 28f0fb7
committed
🤖 Consolidate git utilities by merging gitService into git.ts
Eliminated duplicate WorktreeResult interface and consolidated all git
worktree operations into a single file for better organization.
Changes:
- Moved removeWorktree() and pruneWorktrees() from gitService.ts to git.ts
- Removed duplicate WorktreeResult interface (was in both files)
- Deleted src/services/gitService.ts (36 lines)
- Deleted src/services/gitService.test.ts (10 lines)
- Updated ipcMain.ts to import from @/git instead of gitService
git.ts now exports all git operations:
- listLocalBranches()
- getCurrentBranch()
- detectDefaultTrunkBranch()
- createWorktree()
- getMainWorktreeFromWorktree()
- removeWorktree() [moved from gitService]
- pruneWorktrees() [moved from gitService]
All 796 tests pass, type checking passes.
_Generated with `cmux`_1 parent ce6cd26 commit 28f0fb7
File tree
4 files changed
+31
-47
lines changed- src
- services
4 files changed
+31
-47
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
185 | 185 | | |
186 | 186 | | |
187 | 187 | | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
This file was deleted.
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
| 14 | + | |
13 | 15 | | |
14 | | - | |
15 | 16 | | |
16 | 17 | | |
17 | 18 | | |
| |||
0 commit comments