mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-24 10:38:59 +01:00
Git - expose createStash() in the git extension API (#284226)
* Git - expose `createStash()` in the git extension API * Add method to the interface
This commit is contained in:
@@ -307,6 +307,10 @@ export class ApiRepository implements Repository {
|
||||
return this.#repository.mergeAbort();
|
||||
}
|
||||
|
||||
createStash(options?: { message?: string; includeUntracked?: boolean; staged?: boolean }): Promise<void> {
|
||||
return this.#repository.createStash(options?.message, options?.includeUntracked, options?.staged);
|
||||
}
|
||||
|
||||
applyStash(index?: number): Promise<void> {
|
||||
return this.#repository.applyStash(index);
|
||||
}
|
||||
|
||||
1
extensions/git/src/api/git.d.ts
vendored
1
extensions/git/src/api/git.d.ts
vendored
@@ -294,6 +294,7 @@ export interface Repository {
|
||||
merge(ref: string): Promise<void>;
|
||||
mergeAbort(): Promise<void>;
|
||||
|
||||
createStash(options?: { message?: string; includeUntracked?: boolean; staged?: boolean }): Promise<void>;
|
||||
applyStash(index?: number): Promise<void>;
|
||||
popStash(index?: number): Promise<void>;
|
||||
dropStash(index?: number): Promise<void>;
|
||||
|
||||
Reference in New Issue
Block a user