mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-20 00:28:52 +01:00
Git - expose rebase() though the extension API (#299181)
This commit is contained in:
@@ -320,6 +320,10 @@ export class ApiRepository implements Repository {
|
||||
return this.#repository.mergeAbort();
|
||||
}
|
||||
|
||||
rebase(branch: string): Promise<void> {
|
||||
return this.#repository.rebase(branch);
|
||||
}
|
||||
|
||||
createStash(options?: { message?: string; includeUntracked?: boolean; staged?: boolean }): Promise<void> {
|
||||
return this.#repository.createStash(options?.message, options?.includeUntracked, options?.staged);
|
||||
}
|
||||
|
||||
1
extensions/git/src/api/git.d.ts
vendored
1
extensions/git/src/api/git.d.ts
vendored
@@ -315,6 +315,7 @@ export interface Repository {
|
||||
commit(message: string, opts?: CommitOptions): Promise<void>;
|
||||
merge(ref: string): Promise<void>;
|
||||
mergeAbort(): Promise<void>;
|
||||
rebase(branch: string): Promise<void>;
|
||||
|
||||
createStash(options?: { message?: string; includeUntracked?: boolean; staged?: boolean }): Promise<void>;
|
||||
applyStash(index?: number): Promise<void>;
|
||||
|
||||
Reference in New Issue
Block a user