Pārlūkot izejas kodu

Fixes incorrect status when parsing logs with diffs

main
Eric Amodio pirms 6 gadiem
vecāks
revīzija
c6f2c8e2f7
1 mainītis faili ar 4 papildinājumiem un 1 dzēšanām
  1. +4
    -1
      src/git/parsers/logParser.ts

+ 4
- 1
src/git/parsers/logParser.ts Parādīt failu

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

Notiek ielāde…
Atcelt
Saglabāt