add optimistic rendering for staging and unstaging files

This commit is contained in:
Jesse Duffield
2022-07-31 13:52:56 +10:00
parent c26650258d
commit 7077ea428f
8 changed files with 232 additions and 62 deletions

View File

@@ -41,6 +41,7 @@ type IFileTree interface {
GetAllItems() []*FileNode
GetAllFiles() []*models.File
GetFilter() FileTreeDisplayFilter
GetRoot() *FileNode
}
type FileTree struct {
@@ -159,6 +160,10 @@ func (self *FileTree) Tree() INode {
return self.tree
}
func (self *FileTree) GetRoot() *FileNode {
return self.tree
}
func (self *FileTree) CollapsedPaths() *CollapsedPaths {
return self.collapsedPaths
}