diff --git a/lib/models/Commit.js b/lib/models/Commit.js index dea82b42..ab892dde 100755 --- a/lib/models/Commit.js +++ b/lib/models/Commit.js @@ -144,11 +144,11 @@ Commit.prototype.processTree = function (repo, nCommit, currentBranch, urlProvid changes.push({ lhs: { at: 0, del: 0 }, rhs: { at: 1, add: lineCount } }); } else if (!commitFiles.includes(filepath) && parentCommitFiles.includes(filepath)) { //file deleted - return; + //return; //index file deletions as changes - //parentContent = Buffer.from(await parentCommitEntry.content()).toString('utf8'); - //const parentLineCount = parentContent.split('\n').length; - //changes.push({ lhs: { at: 0, del: parentLineCount }, rhs: { at: 0, add: 0 } }); + parentContent = Buffer.from(await parentCommitEntry.content()).toString('utf8'); + const parentLineCount = parentContent.split('\n').length; + changes.push({ lhs: { at: 0, del: parentLineCount }, rhs: { at: 0, add: 0 } }); } else { //file modified parentContent = Buffer.from(await parentCommitEntry.content()).toString('utf8');