@@ -1166,7 +1166,7 @@ export class GitService implements Disposable {
11661166
11671167 try {
11681168 let data ;
1169- if ( ref1 !== undefined && ref2 === undefined && ! GitService . isUncommittedStaged ( ref1 ) ) {
1169+ if ( ref1 !== undefined && ref2 === undefined && ! Git . isUncommittedStaged ( ref1 ) ) {
11701170 data = await Git . show__diff ( root , file , ref1 , originalFileName , {
11711171 similarityThreshold : Container . config . advanced . similarityThreshold
11721172 } ) ;
@@ -1251,7 +1251,7 @@ export class GitService implements Disposable {
12511251
12521252 @log ( )
12531253 async getFileStatusForCommit ( repoPath : string , fileName : string , ref : string ) : Promise < GitFile | undefined > {
1254- if ( ref === GitService . deletedOrMissingSha || GitService . isUncommitted ( ref ) ) return undefined ;
1254+ if ( ref === GitService . deletedOrMissingSha || Git . isUncommitted ( ref ) ) return undefined ;
12551255
12561256 const data = await Git . show__name_status ( repoPath , fileName , ref ) ;
12571257 if ( ! data ) return undefined ;
@@ -1636,7 +1636,7 @@ export class GitService implements Disposable {
16361636 // If we have no ref (or staged ref) there is no next commit
16371637 if ( ref === undefined || ref . length === 0 ) return undefined ;
16381638
1639- const fileName = GitUri . getRelativePath ( uri , repoPath ) ;
1639+ const fileName = GitUri . relativeTo ( uri , repoPath ) ;
16401640
16411641 if ( Git . isUncommittedStaged ( ref ) ) {
16421642 return {
@@ -1688,7 +1688,7 @@ export class GitService implements Disposable {
16881688 filters = [ 'A' ] ;
16891689 }
16901690
1691- const fileName = GitUri . getRelativePath ( uri , repoPath ) ;
1691+ const fileName = GitUri . relativeTo ( uri , repoPath ) ;
16921692 let data = await Git . log__file ( repoPath , fileName , ref , {
16931693 filters : filters ,
16941694 format : GitLogParser . simpleFormat ,
@@ -1732,7 +1732,7 @@ export class GitService implements Disposable {
17321732 ) : Promise < { current : GitUri ; previous : GitUri | undefined } | undefined > {
17331733 if ( ref === GitService . deletedOrMissingSha ) return undefined ;
17341734
1735- const fileName = GitUri . getRelativePath ( uri , repoPath ) ;
1735+ const fileName = GitUri . relativeTo ( uri , repoPath ) ;
17361736
17371737 // If the ref is missing (i.e. working tree), check the file status to see if there is anything staged
17381738 if ( ( ref === undefined || ref . length === 0 ) && editorLine === undefined ) {
@@ -1754,7 +1754,7 @@ export class GitService implements Disposable {
17541754 }
17551755 }
17561756 }
1757- else if ( GitService . isUncommittedStaged ( ref ) ) {
1757+ else if ( Git . isUncommittedStaged ( ref ) ) {
17581758 const current =
17591759 skip === 0
17601760 ? GitUri . fromFile ( fileName , repoPath , ref )
@@ -1796,7 +1796,7 @@ export class GitService implements Disposable {
17961796 skip ++ ;
17971797 }
17981798
1799- const fileName = GitUri . getRelativePath ( uri , repoPath ) ;
1799+ const fileName = GitUri . relativeTo ( uri , repoPath ) ;
18001800 const data = await Git . log__file ( repoPath , fileName , ref , {
18011801 format : GitLogParser . simpleFormat ,
18021802 maxCount : skip + 1 ,
@@ -2146,7 +2146,7 @@ export class GitService implements Disposable {
21462146
21472147 @log ( )
21482148 async getWorkingUri ( repoPath : string , uri : Uri ) {
2149- let fileName = GitUri . getRelativePath ( uri , repoPath ) ;
2149+ let fileName = GitUri . relativeTo ( uri , repoPath ) ;
21502150
21512151 let data ;
21522152 let ref ;
@@ -2438,6 +2438,7 @@ export class GitService implements Disposable {
24382438 static deletedOrMissingSha = Git . deletedOrMissingSha ;
24392439 static getGitPath = Git . getGitPath ;
24402440 static getGitVersion = Git . getGitVersion ;
2441+ static isSha = Git . isSha ;
24412442 static isShaLike = Git . isShaLike ;
24422443 static isShaParent = Git . isShaParent ;
24432444 static isUncommitted = Git . isUncommitted ;
0 commit comments