Browse Source

Fixes status parsing issue with working changes

main
Eric Amodio 2 years ago
parent
commit
379d83ea48
1 changed files with 3 additions and 2 deletions
  1. +3
    -2
      src/git/models/status.ts

+ 3
- 2
src/git/models/status.ts View File

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

Loading…
Cancel
Save