Skip to content

Commit 633a7c4

Browse files
committed
Update git API
1 parent 928cc29 commit 633a7c4

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/api/api.d.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,14 @@ export interface Remote {
5353
readonly isReadOnly: boolean;
5454
}
5555

56+
export interface Worktree {
57+
readonly name: string;
58+
readonly path: string;
59+
readonly ref: string;
60+
readonly main: boolean;
61+
readonly detached: boolean;
62+
}
63+
5664
export { Status } from './api1';
5765

5866
export interface Change {
@@ -71,6 +79,7 @@ export interface RepositoryState {
7179
readonly HEAD: Branch | undefined;
7280
readonly remotes: Remote[];
7381
readonly submodules: Submodule[];
82+
readonly worktrees?: Worktree[];
7483
readonly rebaseCommit: Commit | undefined;
7584

7685
readonly mergeChanges: Change[];

0 commit comments

Comments
 (0)