瀏覽代碼

Fixes incorrect status when parsing logs with diffs

main
Eric Amodio 6 年之前
父節點
當前提交
c6f2c8e2f7
共有 1 個檔案被更改,包括 4 行新增1 行删除
  1. +4
    -1
      src/git/parsers/logParser.ts

+ 4
- 1
src/git/parsers/logParser.ts 查看文件

@ -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…
取消
儲存