We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bf66dd3 commit 36aa0b5Copy full SHA for 36aa0b5
src/api/api.d.ts
@@ -71,6 +71,7 @@ export interface RepositoryState {
71
readonly HEAD: Branch | undefined;
72
readonly remotes: Remote[];
73
readonly submodules: Submodule[];
74
+ readonly worktrees?: Worktree[];
75
readonly rebaseCommit: Commit | undefined;
76
77
readonly mergeChanges: Change[];
@@ -209,6 +210,9 @@ export interface Repository {
209
210
add(paths: string[]): Promise<void>;
211
merge(ref: string): Promise<void>;
212
mergeAbort(): Promise<void>;
213
+
214
+ createWorktree?(options?: { path?: string; commitish?: string; branch?: string }): Promise<string>;
215
+ deleteWorktree?(path: string, options?: { force?: boolean }): Promise<void>;
216
}
217
218
/**
0 commit comments