Skip to content

Commit 2531455

Browse files
authored
Git - export stash methods in the extension API (microsoft#235773)
1 parent f771cf5 commit 2531455

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

extensions/git/src/api/api1.ts

+12
Original file line numberDiff line numberDiff line change
@@ -272,6 +272,18 @@ export class ApiRepository implements Repository {
272272
mergeAbort(): Promise<void> {
273273
return this.repository.mergeAbort();
274274
}
275+
276+
applyStash(index?: number): Promise<void> {
277+
return this.repository.applyStash(index);
278+
}
279+
280+
popStash(index?: number): Promise<void> {
281+
return this.repository.popStash(index);
282+
}
283+
284+
dropStash(index?: number): Promise<void> {
285+
return this.repository.dropStash(index);
286+
}
275287
}
276288

277289
export class ApiGit implements Git {

extensions/git/src/api/git.d.ts

+4
Original file line numberDiff line numberDiff line change
@@ -266,6 +266,10 @@ export interface Repository {
266266
commit(message: string, opts?: CommitOptions): Promise<void>;
267267
merge(ref: string): Promise<void>;
268268
mergeAbort(): Promise<void>;
269+
270+
applyStash(index?: number): Promise<void>;
271+
popStash(index?: number): Promise<void>;
272+
dropStash(index?: number): Promise<void>;
269273
}
270274

271275
export interface RemoteSource {

0 commit comments

Comments
 (0)