@@ -10,7 +10,7 @@ export class FileStatParser implements IFileStatParser {
1010 constructor ( @inject ( IServiceContainer ) private serviceContainer : IServiceContainer ) {
1111 }
1212
13- private static parseFileMovement ( fileInfo : string ) : { original : string , current : string } | undefined {
13+ private static parseFileMovement ( fileInfo : string ) : { original : string ; current : string } | undefined {
1414 // src/client/{common/comms => }/Socket Stream.ts
1515 // src/client/common/{space in folder => comms}/id Dispenser.ts
1616 // src/client/common/space in folder/{idDispenser.ts => id Dispenser.ts}
@@ -67,13 +67,11 @@ export class FileStatParser implements IFileStatParser {
6767
6868 /**
6969 * Parses a line containing file information returned by `git log --name-stat` and returns just the file names
70- * @private
71- * @static
7270 * @param {string } line
7371 * @returns {({ original?: string, current: string } | undefined) }
7472 * @memberof FileStatParser
7573 */
76- private static getNewAndOldFileNameFromNumStatLine ( line : string , status : Status ) : { original ?: string , current : string } | undefined {
74+ private static getNewAndOldFileNameFromNumStatLine ( line : string , status : Status ) : { original ?: string ; current : string } | undefined {
7775 const statusParts = line . split ( '\t' ) ;
7876 const fileName = statusParts [ 1 ] . trim ( ) ;
7977 if ( status === Status . Renamed || status === Status . Copied ) {
@@ -84,8 +82,6 @@ export class FileStatParser implements IFileStatParser {
8482
8583 /**
8684 * Parses a line containing file information returned by `git log --numstat`
87- * @private
88- * @static
8985 * @param {string } line
9086 * @returns {({ additions?: number, deletions?: number } | undefined) }
9187 * @memberof FileStatParser
@@ -108,8 +104,7 @@ export class FileStatParser implements IFileStatParser {
108104 * Parsers the file status
109105 * @param {string[] } filesWithNumStat Files returned using `git log --numstat`
110106 * @param {string[] } filesWithNameStat Files returned using `git log --name-status`
111- * @returns {CommittedFile[] }
112- * @memberof FileStatParser
107+ * @returns {CommittedFile[] } An array of committed files
113108 */
114109 public parse ( gitRootPath : string , filesWithNumStat : string [ ] , filesWithNameStat : string [ ] ) : CommittedFile [ ] {
115110 return filesWithNameStat . map ( ( line , index ) => {
@@ -142,7 +137,6 @@ export class FileStatParser implements IFileStatParser {
142137 uri : Uri . file ( path . join ( gitRootPath , relativePath ) ) ,
143138 oldUri
144139 } ;
145-
146140 // uri.fsPath getter sporadically becomes a slash as prefix (E.g "/z:/folder/subfolder").
147141 // By fetching fsPath through the getter, the internal method _makeFsPath(this) immediate get called here
148142 // and the fsPath is set correctly.
0 commit comments