From 379d83ea48b37ee0471b549e239226edd366cad2 Mon Sep 17 00:00:00 2001 From: Eric Amodio Date: Tue, 27 Sep 2022 02:33:18 -0400 Subject: [PATCH] Fixes status parsing issue with working changes --- src/git/models/status.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/git/models/status.ts b/src/git/models/status.ts index ae8ce9d..1629505 100644 --- a/src/git/models/status.ts +++ b/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;