File tree Expand file tree Collapse file tree 3 files changed +0
-21
lines changed Expand file tree Collapse file tree 3 files changed +0
-21
lines changed Original file line number Diff line number Diff line change @@ -160,10 +160,6 @@ export class ApiRepository implements Repository {
160
160
return this . repository . diffBetween ( ref1 , ref2 , path ) ;
161
161
}
162
162
163
- getDiff ( ) : Promise < string [ ] > {
164
- return this . repository . getDiff ( ) ;
165
- }
166
-
167
163
hashObject ( data : string ) : Promise < string > {
168
164
return this . repository . hashObject ( data ) ;
169
165
}
Original file line number Diff line number Diff line change @@ -226,8 +226,6 @@ export interface Repository {
226
226
diffBetween ( ref1 : string , ref2 : string ) : Promise < Change [ ] > ;
227
227
diffBetween ( ref1 : string , ref2 : string , path : string ) : Promise < string > ;
228
228
229
- getDiff ( ) : Promise < string [ ] > ;
230
-
231
229
hashObject ( data : string ) : Promise < string > ;
232
230
233
231
createBranch ( name : string , checkout : boolean , ref ?: string ) : Promise < void > ;
Original file line number Diff line number Diff line change @@ -1599,21 +1599,6 @@ export class Repository implements Disposable {
1599
1599
return await this . run ( Operation . RevList , ( ) => this . repository . getCommitCount ( range ) ) ;
1600
1600
}
1601
1601
1602
- async getDiff ( ) : Promise < string [ ] > {
1603
- const diff : string [ ] = [ ] ;
1604
- if ( this . indexGroup . resourceStates . length !== 0 ) {
1605
- for ( const file of this . indexGroup . resourceStates . map ( r => r . resourceUri . fsPath ) ) {
1606
- diff . push ( await this . diffIndexWithHEAD ( file ) ) ;
1607
- }
1608
- } else {
1609
- for ( const file of this . workingTreeGroup . resourceStates . map ( r => r . resourceUri . fsPath ) ) {
1610
- diff . push ( await this . diffWithHEAD ( file ) ) ;
1611
- }
1612
- }
1613
-
1614
- return diff ;
1615
- }
1616
-
1617
1602
async revParse ( ref : string ) : Promise < string | undefined > {
1618
1603
return await this . run ( Operation . RevParse , ( ) => this . repository . revParse ( ref ) ) ;
1619
1604
}
You can’t perform that action at this time.
0 commit comments