fix(core): always start worktrees as detached (#26931)
This commit is contained in:
parent
42a0453945
commit
9067218b74
7 changed files with 101 additions and 47 deletions
|
|
@ -1398,7 +1398,7 @@ export type WorktreeCreateInput = {
|
|||
|
||||
export type Worktree = {
|
||||
name: string
|
||||
branch: string
|
||||
branch?: string
|
||||
directory: string
|
||||
}
|
||||
|
||||
|
|
@ -1795,9 +1795,9 @@ export type Workspace = {
|
|||
id: string
|
||||
type: string
|
||||
name: string
|
||||
branch: string | null
|
||||
directory: string | null
|
||||
extra: unknown | null
|
||||
branch?: string | null
|
||||
directory?: string | null
|
||||
extra?: unknown | null
|
||||
projectID: string
|
||||
timeUsed: number | "NaN" | "Infinity" | "-Infinity" | "Infinity" | "-Infinity" | "NaN"
|
||||
}
|
||||
|
|
@ -2566,7 +2566,7 @@ export type EventWorktreeReady = {
|
|||
type: "worktree.ready"
|
||||
properties: {
|
||||
name: string
|
||||
branch: string
|
||||
branch?: string
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -6772,7 +6772,7 @@ export type ExperimentalWorkspaceCreateData = {
|
|||
body?: {
|
||||
id?: string
|
||||
type: string
|
||||
branch: string | null
|
||||
branch?: string | null
|
||||
extra?: unknown | null
|
||||
}
|
||||
path?: never
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue