@@ -6,7 +6,7 @@ import { Uri } from 'vscode';
66import { IWorkspaceService } from '../../application/types/workspace' ;
77import { cache } from '../../common/cache' ;
88import { IServiceContainer } from '../../ioc/types' ;
9- import { ActionedUser , Branch , CommittedFile , Hash , IGitService , LogEntries , LogEntry , Ref } from '../../types' ;
9+ import { ActionedUser , Branch , CommittedFile , Hash , IGitService , LogEntries , LogEntry , Ref , FsUri } from '../../types' ;
1010import { IGitCommandExecutor } from '../exec' ;
1111import { IFileStatParser , ILogParser } from '../parsers/types' ;
1212import { ITEM_ENTRY_SEPARATOR , LOG_ENTRY_SEPARATOR , LOG_FORMAT_ARGS } from './constants' ;
@@ -251,7 +251,7 @@ export class Git implements IGitService {
251251 }
252252
253253 @cache ( 'IGitService' )
254- public async getCommitFile ( hash : string , file : Uri | string ) : Promise < Uri > {
254+ public async getCommitFile ( hash : string , file : FsUri | string ) : Promise < Uri > {
255255 //const gitRootPath = await this.getGitRoot();
256256 const filePath = typeof file === 'string' ? file : file . path . toString ( ) ;
257257
@@ -299,7 +299,7 @@ export class Git implements IGitService {
299299 }
300300
301301 @cache ( 'IGitService' )
302- public async getPreviousCommitHashForFile ( hash : string , file : Uri ) : Promise < Hash > {
302+ public async getPreviousCommitHashForFile ( hash : string , file : FsUri ) : Promise < Hash > {
303303 const gitRootPath = await this . getGitRoot ( ) ;
304304 const relativeFilePath = path . relative ( gitRootPath , file . path ) ;
305305 const args = this . gitArgsService . getPreviousCommitHashForFileArgs ( hash , relativeFilePath ) ;
0 commit comments