|
|
@ -2904,6 +2904,7 @@ export class LocalGitProvider implements GitProvider, Disposable { |
|
|
|
return remotes.filter(r => r.provider != null) as GitRemote<RemoteProvider>[]; |
|
|
|
} |
|
|
|
|
|
|
|
@debug({ args: { 1: false } }) |
|
|
|
async getRemotesCore( |
|
|
|
repoPath: string | undefined, |
|
|
|
providers?: RemoteProviders, |
|
|
@ -3049,6 +3050,12 @@ export class LocalGitProvider implements GitProvider, Disposable { |
|
|
|
|
|
|
|
@gate() |
|
|
|
@log() |
|
|
|
getRevisionContent(repoPath: string, path: string, ref: string): Promise<Uint8Array | undefined> { |
|
|
|
return Git.show<Buffer>(repoPath, path, ref, { encoding: 'buffer' }); |
|
|
|
} |
|
|
|
|
|
|
|
@gate() |
|
|
|
@log() |
|
|
|
async getStash(repoPath: string | undefined): Promise<GitStash | undefined> { |
|
|
|
if (repoPath == null) return undefined; |
|
|
|
|
|
|
@ -3194,11 +3201,6 @@ export class LocalGitProvider implements GitProvider, Disposable { |
|
|
|
} |
|
|
|
|
|
|
|
@log() |
|
|
|
getRevisionContent(repoPath: string, path: string, ref: string): Promise<Uint8Array | undefined> { |
|
|
|
return Git.show<Buffer>(repoPath, path, ref, { encoding: 'buffer' }); |
|
|
|
} |
|
|
|
|
|
|
|
@log() |
|
|
|
async getVersionedUri(repoPath: string, fileName: string, ref: string | undefined): Promise<Uri | undefined> { |
|
|
|
if (ref === GitRevision.deletedOrMissing) return undefined; |
|
|
|
|
|
|
|