From 909719d81515f20aaac8347901f01787fb3a8d00 Mon Sep 17 00:00:00 2001 From: Eric Amodio Date: Mon, 7 Feb 2022 23:11:59 -0500 Subject: [PATCH] Adds stats to file log if possible --- src/premium/github/githubGitProvider.ts | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/premium/github/githubGitProvider.ts b/src/premium/github/githubGitProvider.ts index 112736c..30dda6c 100644 --- a/src/premium/github/githubGitProvider.ts +++ b/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,