瀏覽代碼

Adds stats to file log if possible

main
Eric Amodio 2 年之前
父節點
當前提交
909719d815
共有 1 個檔案被更改,包括 10 行新增1 行删除
  1. +10
    -1
      src/premium/github/githubGitProvider.ts

+ 10
- 1
src/premium/github/githubGitProvider.ts 查看文件

@ -1605,7 +1605,16 @@ export class GitHubGitProvider implements GitProvider, Disposable {
const foundFile = isFolderGlob(relativePath)
? undefined
: files?.find(f => f.path === relativePath) ??
new GitFileChange(repoPath, relativePath, GitFileIndexStatus.Modified);
new GitFileChange(
repoPath,
relativePath,
GitFileIndexStatus.Modified,
undefined,
undefined,
commit.changedFiles === 1
? { additions: commit.additions ?? 0, deletions: commit.deletions ?? 0, changes: 0 }
: undefined,
);
c = new GitCommit(
this.container,

Loading…
取消
儲存