mirror of
https://github.com/stablyai/orca.git
synced 2026-11-04 11:07:42 +00:00
11 lines
400 B
TypeScript
11 lines
400 B
TypeScript
import type { GitWorktreeInfo } from './types'
|
|
|
|
export const NESTED_WORKTREE_REMOVAL_PREFIX =
|
|
'Refusing to delete worktree because it contains another registered worktree:'
|
|
|
|
export type NestedWorktreeRemovalApproval = Pick<GitWorktreeInfo, 'path' | 'head' | 'branch'>
|
|
|
|
export function isNestedWorktreeRemovalError(error: string): boolean {
|
|
return error.includes(NESTED_WORKTREE_REMOVAL_PREFIX)
|
|
}
|