Skip to content

Commit 36aa0b5

Browse files
committed
Update git API
1 parent bf66dd3 commit 36aa0b5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/api/api.d.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ export interface RepositoryState {
7171
readonly HEAD: Branch | undefined;
7272
readonly remotes: Remote[];
7373
readonly submodules: Submodule[];
74+
readonly worktrees?: Worktree[];
7475
readonly rebaseCommit: Commit | undefined;
7576

7677
readonly mergeChanges: Change[];
@@ -209,6 +210,9 @@ export interface Repository {
209210
add(paths: string[]): Promise<void>;
210211
merge(ref: string): Promise<void>;
211212
mergeAbort(): Promise<void>;
213+
214+
createWorktree?(options?: { path?: string; commitish?: string; branch?: string }): Promise<string>;
215+
deleteWorktree?(path: string, options?: { force?: boolean }): Promise<void>;
212216
}
213217

214218
/**

0 commit comments

Comments
 (0)