mirror of
https://github.com/starship/starship.git
synced 2024-11-07 08:54:50 +01:00
fixup! fixup! fixup! feat(git_status): add variables to track worktree and index changes
This commit is contained in:
parent
e84baa7465
commit
080ee6068d
@ -457,10 +457,10 @@ impl RepoStatus {
|
||||
self.index_typechanged += 1;
|
||||
}
|
||||
|
||||
self.deleted += self.worktree_deleted + self.index_deleted;
|
||||
self.modified += self.worktree_modified + self.worktree_added;
|
||||
self.staged += self.index_modified + self.index_added + self.index_typechanged;
|
||||
self.typechanged += self.worktree_typechanged;
|
||||
self.deleted = self.worktree_deleted + self.index_deleted;
|
||||
self.modified = self.worktree_modified + self.worktree_added;
|
||||
self.staged = self.index_modified + self.index_added + self.index_typechanged;
|
||||
self.typechanged = self.worktree_typechanged;
|
||||
}
|
||||
|
||||
fn add(&mut self, s: &str) {
|
||||
|
Loading…
Reference in New Issue
Block a user