@@ -17,23 +17,12 @@ class ApiInputBox implements InputBox {
1717
1818export class ApiChange implements Change {
1919
20- constructor ( private readonly resource : Resource ) { }
21-
22- public get resourceUri ( ) : Uri {
23- return this . resource . resourceUri ;
24- }
25-
26- public get status ( ) : Status {
27- return this . resource . type ;
28- }
29-
30- public get original ( ) : Uri {
31- return this . resource . original ;
32- }
20+ get uri ( ) : Uri { return this . resource . resourceUri ; }
21+ get originalUri ( ) : Uri { return this . resource . original ; }
22+ get renameUri ( ) : Uri | undefined { return this . resource . renameResourceUri ; }
23+ get status ( ) : Status { return this . resource . type ; }
3324
34- public get renameResourceUri ( ) : Uri | undefined {
35- return this . resource . renameResourceUri ;
36- }
25+ constructor ( private readonly resource : Resource ) { }
3726}
3827
3928export class ApiRepositoryState implements RepositoryState {
@@ -83,14 +72,6 @@ export class ApiRepository implements Repository {
8372 return this . _repository . setConfig ( key , value ) ;
8473 }
8574
86- show ( ref : string , path : string ) : Promise < string > {
87- return this . _repository . show ( ref , path ) ;
88- }
89-
90- getCommit ( ref : string ) : Promise < Commit > {
91- return this . _repository . getCommit ( ref ) ;
92- }
93-
9475 getObjectDetails ( treeish : string , path : string ) : Promise < { mode : string ; object : string ; size : number ; } > {
9576 return this . _repository . getObjectDetails ( treeish , path ) ;
9677 }
@@ -103,6 +84,18 @@ export class ApiRepository implements Repository {
10384 return this . _repository . buffer ( ref , filePath ) ;
10485 }
10586
87+ show ( ref : string , path : string ) : Promise < string > {
88+ return this . _repository . show ( ref , path ) ;
89+ }
90+
91+ getCommit ( ref : string ) : Promise < Commit > {
92+ return this . _repository . getCommit ( ref ) ;
93+ }
94+
95+ clean ( paths : string [ ] ) {
96+ return this . _repository . clean ( paths . map ( p => Uri . file ( p ) ) ) ;
97+ }
98+
10699 diffWithHEAD ( path : string ) : Promise < string > {
107100 return this . _repository . diffWithHEAD ( path ) ;
108101 }
@@ -174,10 +167,6 @@ export class ApiRepository implements Repository {
174167 pull ( ) : Promise < void > {
175168 return this . _repository . pull ( ) ;
176169 }
177-
178- clean ( filePaths : string [ ] ) {
179- return this . _repository . clean ( filePaths . map ( p => Uri . file ( p ) ) ) ;
180- }
181170}
182171
183172export class ApiGit implements Git {
0 commit comments