@@ -51,9 +51,9 @@ export interface IFileListState {
5151}
5252
5353export interface IFileListProps {
54- stagedFiles : Git . IGitStatusFileResult [ ] ;
55- unstagedFiles : Git . IGitStatusFileResult [ ] ;
56- untrackedFiles : Git . IGitStatusFileResult [ ] ;
54+ stagedFiles : Git . IStatusFileResult [ ] ;
55+ unstagedFiles : Git . IStatusFileResult [ ] ;
56+ untrackedFiles : Git . IStatusFileResult [ ] ;
5757 model : GitExtension ;
5858 renderMime : IRenderMimeRegistry ;
5959}
@@ -302,23 +302,23 @@ export class FileList extends React.Component<IFileListProps, IFileListState> {
302302
303303 /** Reset all staged files */
304304 resetAllStagedFiles = async ( ) => {
305- await this . props . model . reset ( true , null ) ;
305+ await this . props . model . reset ( ) ;
306306 } ;
307307
308308 /** Reset a specific staged file */
309309 resetStagedFile = async ( file : string ) => {
310- await this . props . model . reset ( false , file ) ;
310+ await this . props . model . reset ( file ) ;
311311 } ;
312312
313313 /** Add all unstaged files */
314314 addAllUnstagedFiles = async ( ) => {
315- await this . props . model . add ( true , null ) ;
315+ await this . props . model . add ( ) ;
316316 } ;
317317
318318 /** Discard changes in all unstaged files */
319319 discardAllUnstagedFiles = async ( ) => {
320320 try {
321- await this . props . model . checkout ( false , false , null , true , null ) ;
321+ await this . props . model . checkout ( ) ;
322322 } catch ( reason ) {
323323 showErrorMessage ( 'Discard all changes failed.' , reason , [
324324 Dialog . warnButton ( { label : 'DISMISS' } )
@@ -328,13 +328,13 @@ export class FileList extends React.Component<IFileListProps, IFileListState> {
328328
329329 /** Add a specific unstaged file */
330330 addUnstagedFile = async ( file : string ) => {
331- await this . props . model . add ( false , file ) ;
331+ await this . props . model . add ( file ) ;
332332 } ;
333333
334334 /** Discard changes in a specific unstaged file */
335335 discardUnstagedFile = async ( file : string ) => {
336336 try {
337- await this . props . model . checkout ( false , false , null , false , file ) ;
337+ await this . props . model . checkout ( { filename : file } ) ;
338338 } catch ( reason ) {
339339 showErrorMessage ( `Discard changes for ${ file } failed.` , reason , [
340340 Dialog . warnButton ( { label : 'DISMISS' } )
@@ -349,7 +349,7 @@ export class FileList extends React.Component<IFileListProps, IFileListState> {
349349
350350 /** Add a specific untracked file */
351351 addUntrackedFile = async ( file : string ) => {
352- await this . props . model . add ( false , file ) ;
352+ await this . props . model . add ( file ) ;
353353 } ;
354354
355355 disableStagesForDiscardAll = ( ) => {
0 commit comments