Skip to content

Commit 0aa28f5

Browse files
committed
Merge commit 'refs/pull/61448/head' of github.com:Microsoft/vscode into pr/61448
2 parents aee5ffa + 38ca802 commit 0aa28f5

2 files changed

Lines changed: 10 additions & 0 deletions

File tree

extensions/git/src/api/api1.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,14 @@ export class ApiRepository implements Repository {
167167
pull(): Promise<void> {
168168
return this._repository.pull();
169169
}
170+
171+
push(head: Branch): Promise<void> {
172+
return this._repository.push(head);
173+
}
174+
175+
pushTo(remote?: string, name?: string, setUpstream: boolean = false): Promise<void> {
176+
return this._repository.pushTo(remote, name, setUpstream);
177+
}
170178
}
171179

172180
export class ApiGit implements Git {

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,8 @@ export interface Repository {
152152

153153
fetch(remote?: string, ref?: string): Promise<void>;
154154
pull(): Promise<void>;
155+
push(head: Branch): Promise<void>;
156+
pushTo(remote?: string, name?: string, setUpstream?: boolean): Promise<void>;
155157
}
156158

157159
export interface API {

0 commit comments

Comments
 (0)