Browse Source

Fixes incorrect status when parsing logs with diffs

main
Eric Amodio 6 years ago
parent
commit
c6f2c8e2f7
1 changed files with 4 additions and 1 deletions
  1. +4
    -1
      src/git/parsers/logParser.ts

+ 4
- 1
src/git/parsers/logParser.ts View File

@ -160,8 +160,11 @@ export class GitLogParser {
const originalFileName = matches[2];
if (entry.fileName !== originalFileName) {
entry.originalFileName = originalFileName;
entry.status = 'R';
}
else {
entry.status = 'M';
}
entry.status = entry.fileName !== entry.originalFileName ? 'R' : 'M';
}
while (true) {

Loading…
Cancel
Save