瀏覽代碼

Fixes status parsing issue with working changes

main
Eric Amodio 2 年之前
父節點
當前提交
379d83ea48
共有 1 個檔案被更改,包括 3 行新增2 行删除
  1. +3
    -2
      src/git/models/status.ts

+ 3
- 2
src/git/models/status.ts 查看文件

@ -383,10 +383,11 @@ export class GitStatusFile implements GitFile {
switch (y) {
case 'A':
this.workingTreeStatus = GitFileWorkingTreeStatus.Modified;
case '?':
this.workingTreeStatus = GitFileWorkingTreeStatus.Added;
break;
case 'D':
this.workingTreeStatus = GitFileWorkingTreeStatus.Modified;
this.workingTreeStatus = GitFileWorkingTreeStatus.Deleted;
break;
case 'M':
this.workingTreeStatus = GitFileWorkingTreeStatus.Modified;

Loading…
取消
儲存