Commit fb1e543
refactor: use git API for worktree operations instead of child_process
- Use repository.state.worktrees to find worktrees for a branch
- Use repository.deleteWorktree() to remove worktrees
- Add Worktree interface to api.d.ts
- Remove env/node/gitWorktree.ts and env/browser/gitWorktree.ts
- Remove webpack alias for gitWorktree
Co-authored-by: alexr00 <38270282+alexr00@users.noreply.github.com>1 parent 36aa0b5 commit fb1e543
File tree
6 files changed
+28
-74
lines changed- src
- api
- env
- browser
- node
- github
6 files changed
+28
-74
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
56 | 64 | | |
57 | 65 | | |
58 | 66 | | |
| |||
This file was deleted.
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
63 | | - | |
64 | 63 | | |
65 | 64 | | |
66 | 65 | | |
| |||
2451 | 2450 | | |
2452 | 2451 | | |
2453 | 2452 | | |
2454 | | - | |
2455 | | - | |
2456 | | - | |
2457 | | - | |
2458 | | - | |
| 2453 | + | |
| 2454 | + | |
| 2455 | + | |
| 2456 | + | |
2459 | 2457 | | |
2460 | | - | |
| 2458 | + | |
| 2459 | + | |
| 2460 | + | |
| 2461 | + | |
| 2462 | + | |
| 2463 | + | |
| 2464 | + | |
| 2465 | + | |
| 2466 | + | |
2461 | 2467 | | |
2462 | 2468 | | |
2463 | 2469 | | |
| 2470 | + | |
| 2471 | + | |
| 2472 | + | |
| 2473 | + | |
2464 | 2474 | | |
2465 | | - | |
| 2475 | + | |
2466 | 2476 | | |
2467 | 2477 | | |
2468 | 2478 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
336 | 336 | | |
337 | 337 | | |
338 | 338 | | |
339 | | - | |
| 339 | + | |
340 | 340 | | |
341 | 341 | | |
342 | 342 | | |
| |||
526 | 526 | | |
527 | 527 | | |
528 | 528 | | |
529 | | - | |
| 529 | + | |
530 | 530 | | |
531 | 531 | | |
532 | 532 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
349 | 349 | | |
350 | 350 | | |
351 | 351 | | |
352 | | - | |
353 | 352 | | |
354 | 353 | | |
355 | 354 | | |
| |||
0 commit comments