From 393155a0208f96bf0847b5c7bbdf13c41eda0818 Mon Sep 17 00:00:00 2001 From: Eric Amodio Date: Thu, 13 Jan 2022 17:27:10 -0500 Subject: [PATCH] Adds hasChanges --- src/git/models/status.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/git/models/status.ts b/src/git/models/status.ts index 1f831a0..e1d41d7 100644 --- a/src/git/models/status.ts +++ b/src/git/models/status.ts @@ -45,6 +45,10 @@ export class GitStatus { return this.files.filter(f => f.conflicted); } + get hasChanges() { + return this.files.length !== 0; + } + @memoize() get hasConflicts() { return this.files.some(f => f.conflicted);