From c6f2c8e2f720730a65b286becd7d9736aee42da2 Mon Sep 17 00:00:00 2001 From: Eric Amodio Date: Tue, 4 Sep 2018 02:48:40 -0400 Subject: [PATCH] Fixes incorrect status when parsing logs with diffs --- src/git/parsers/logParser.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/git/parsers/logParser.ts b/src/git/parsers/logParser.ts index 111e123..5544eac 100644 --- a/src/git/parsers/logParser.ts +++ b/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) {