diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2021-03-21 15:01:13 +1100 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2021-03-30 21:57:00 +1100 |
commit | ef204b0adfdcdea821a9e210642aeec28d264a2f (patch) | |
tree | a740d4b98b7586a62f643188d3e2acafd6439695 /pkg/commands | |
parent | f742434043fc8bea710deac8553a484815a2653b (diff) |
remove collapsed field
Diffstat (limited to 'pkg/commands')
-rw-r--r-- | pkg/commands/models/file_change_interface.go | 1 | ||||
-rw-r--r-- | pkg/commands/models/file_change_node.go | 3 |
2 files changed, 2 insertions, 2 deletions
diff --git a/pkg/commands/models/file_change_interface.go b/pkg/commands/models/file_change_interface.go index 5413b076f..76d313d1a 100644 --- a/pkg/commands/models/file_change_interface.go +++ b/pkg/commands/models/file_change_interface.go @@ -1,5 +1,6 @@ package models +// sometimes we need to deal with either a node (which contains a file) or an actual file type IFileChange interface { GetHasUnstagedChanges() bool GetHasStagedChanges() bool diff --git a/pkg/commands/models/file_change_node.go b/pkg/commands/models/file_change_node.go index d6f22d37f..0150e8d46 100644 --- a/pkg/commands/models/file_change_node.go +++ b/pkg/commands/models/file_change_node.go @@ -12,8 +12,7 @@ type FileChangeNode struct { Children []*FileChangeNode File *File Path string // e.g. '/path/to/mydir' - Collapsed bool - CompressionLevel int // equal to the number of forward slashes you'll see in the path when it's rendered in tree mode + CompressionLevel int // equal to the number of forward slashes you'll see in the path when it's rendered in tree mode } func (s *FileChangeNode) GetHasUnstagedChanges() bool { |