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);