fixup! fixup! fixup! feat(git_status): add variables to track worktree and index changes

This commit is contained in:
Matthew Warman 2024-06-15 16:32:47 +01:00
parent e84baa7465
commit 080ee6068d

View File

@ -457,10 +457,10 @@ impl RepoStatus {
self.index_typechanged += 1; self.index_typechanged += 1;
} }
self.deleted += self.worktree_deleted + self.index_deleted; self.deleted = self.worktree_deleted + self.index_deleted;
self.modified += self.worktree_modified + self.worktree_added; self.modified = self.worktree_modified + self.worktree_added;
self.staged += self.index_modified + self.index_added + self.index_typechanged; self.staged = self.index_modified + self.index_added + self.index_typechanged;
self.typechanged += self.worktree_typechanged; self.typechanged = self.worktree_typechanged;
} }
fn add(&mut self, s: &str) { fn add(&mut self, s: &str) {