Commit 09dd1ee
Simplify worktree path uniqueness handling
Instead of forcefully removing existing worktrees and branches, append
a short UUID to the worktree path when a conflict is detected. This
approach is cleaner and avoids destructive operations.
Changes:
- Append short UUID to worktree path if directory already exists
- Remove forced worktree removal logic
- Remove forced branch deletion logic
- Move shortUuid extraction earlier for reuse
- Change worktreePath from const to let for modification
Co-Authored-By: Claude <[email protected]>1 parent 67b61a2 commit 09dd1ee
1 file changed
+4
-15
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
322 | 322 | | |
323 | 323 | | |
324 | 324 | | |
325 | | - | |
| 325 | + | |
326 | 326 | | |
327 | 327 | | |
328 | 328 | | |
| 329 | + | |
329 | 330 | | |
330 | 331 | | |
331 | 332 | | |
332 | 333 | | |
333 | | - | |
334 | 334 | | |
335 | 335 | | |
336 | 336 | | |
| |||
343 | 343 | | |
344 | 344 | | |
345 | 345 | | |
346 | | - | |
| 346 | + | |
347 | 347 | | |
348 | | - | |
349 | | - | |
350 | | - | |
351 | | - | |
352 | | - | |
353 | | - | |
354 | | - | |
355 | | - | |
356 | | - | |
357 | | - | |
358 | | - | |
359 | | - | |
| 348 | + | |
360 | 349 | | |
361 | 350 | | |
362 | 351 | | |
| |||
0 commit comments