feat(FN-4811): complete Step 3 — update removeWorktree call sites
Fusion-Task-Id: FN-4811 Fusion-Task-Lineage: f3dac123-cb46-4d31-8a7e-dfc664bfdc5f
This commit is contained in:
committed by
gsxdsm
parent
7a438f63ee
commit
8fd47b619f
@@ -10,6 +10,7 @@ import {
|
||||
resolveWorktrunkBinary,
|
||||
} from "./worktrunk-installer.js";
|
||||
import {
|
||||
RemovalReason,
|
||||
removeWorktree as removeWorktreeViaBackend,
|
||||
resolveWorktreeBackend as resolveWorktreeBackendViaSettings,
|
||||
} from "./worktree-backend.js";
|
||||
@@ -21,7 +22,8 @@ export {
|
||||
removeWorktree,
|
||||
resolveWorktreeBackend,
|
||||
} from "./worktree-backend.js";
|
||||
export type { WorktreeBackend, WorktreeBackendKind } from "./worktree-backend.js";
|
||||
export type { WorktreeBackend, WorktreeBackendKind, RemovalReason } from "./worktree-backend.js";
|
||||
export { RemovalReason } from "./worktree-backend.js";
|
||||
|
||||
// Re-export worktrunk installer types for convenience.
|
||||
export {
|
||||
@@ -535,6 +537,7 @@ export async function cleanupOrphanedWorktrees(
|
||||
rootDir,
|
||||
worktreePath,
|
||||
settings: settings ?? {},
|
||||
reason: RemovalReason.PoolPrune,
|
||||
});
|
||||
} else {
|
||||
if (!isInsideWorktreesDir(rootDir, worktreePath, settings)) {
|
||||
|
||||
Reference in New Issue
Block a user