File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -150,6 +150,14 @@ export class ApiRepository implements Repository {
150150 pull ( ) : Promise < void > {
151151 return this . _repository . pull ( ) ;
152152 }
153+
154+ push ( head : Branch ) : Promise < void > {
155+ return this . _repository . push ( head ) ;
156+ }
157+
158+ pushTo ( remote ?: string , name ?: string , setUpstream : boolean = false ) : Promise < void > {
159+ return this . _repository . pushTo ( remote , name , setUpstream ) ;
160+ }
153161}
154162
155163export class ApiGit implements Git {
Original file line number Diff line number Diff line change @@ -118,6 +118,8 @@ export interface Repository {
118118
119119 fetch ( remote ?: string , ref ?: string ) : Promise < void > ;
120120 pull ( ) : Promise < void > ;
121+ push ( head : Branch ) : Promise < void > ;
122+ pushTo ( remote ?: string , name ?: string , setUpstream ?: boolean ) : Promise < void > ;
121123}
122124
123125export interface API {
You can’t perform that action at this time.
0 commit comments