File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
172180export class ApiGit implements Git {
Original file line number Diff line number Diff 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
157159export interface API {
You can’t perform that action at this time.
0 commit comments