Files
oh-my-opencode/dist/hooks/start-work/worktree-detector.d.ts
T
2026-03-14 04:56:50 +00:00

9 lines
340 B
TypeScript

export type WorktreeEntry = {
path: string;
branch: string | undefined;
bare: boolean;
};
export declare function parseWorktreeListPorcelain(output: string): WorktreeEntry[];
export declare function listWorktrees(directory: string): WorktreeEntry[];
export declare function detectWorktreePath(directory: string): string | null;