@@ -4,7 +4,7 @@ import { Disposable, Event, EventEmitter, FileSystemWatcher, Location, Position,
44import { IConfig } from './configuration' ;
55import { DocumentSchemes , ExtensionKey , GlyphChars } from './constants' ;
66import { RemoteProviderFactory } from './git/remotes/factory' ;
7- import { Git , GitAuthor , GitBlame , GitBlameCommit , GitBlameLine , GitBlameLines , GitBlameParser , GitBranch , GitBranchParser , GitCommit , GitDiff , GitDiffChunkLine , GitDiffParser , GitLog , GitLogCommit , GitLogParser , GitRemote , GitRemoteParser , GitStash , GitStashParser , GitStatus , GitStatusFile , GitStatusParser , IGit , setDefaultEncoding } from './git/git' ;
7+ import { Git , GitAuthor , GitBlame , GitBlameCommit , GitBlameLine , GitBlameLines , GitBlameParser , GitBranch , GitBranchParser , GitCommit , GitDiff , GitDiffChunkLine , GitDiffParser , GitDiffShortStat , GitLog , GitLogCommit , GitLogParser , GitRemote , GitRemoteParser , GitStash , GitStashParser , GitStatus , GitStatusFile , GitStatusParser , IGit , setDefaultEncoding } from './git/git' ;
88import { GitUri , IGitCommitInfo , IGitUriData } from './git/gitUri' ;
99import { Logger } from './logger' ;
1010import * as fs from 'fs' ;
@@ -599,6 +599,10 @@ export class GitService extends Disposable {
599599 return Git . normalizePath ( typeof fileNameOrUri === 'string' ? fileNameOrUri : fileNameOrUri . fsPath ) . toLowerCase ( ) ;
600600 }
601601
602+ async getChangedFilesCount ( repoPath : string , sha ?: string ) : Promise < GitDiffShortStat | undefined > {
603+ return GitDiffParser . parseShortStat ( await Git . diff_shortstat ( repoPath , sha ) ) ;
604+ }
605+
602606 async getConfig ( key : string , repoPath ?: string ) : Promise < string > {
603607 Logger . log ( `getConfig('${ key } ', '${ repoPath } ')` ) ;
604608
0 commit comments