diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2021-03-20 13:49:43 +1100 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2021-03-30 21:57:00 +1100 |
commit | c27cea6f30c35328a24bb4fb7db4f002ab544ad3 (patch) | |
tree | ef9f74c757d80651e4229266f54918915478febd /pkg/commands/models | |
parent | cd0532b4d6e9dcb846c6ce5ad88be7e0cf671a40 (diff) |
more file tree improvements
Diffstat (limited to 'pkg/commands/models')
-rw-r--r-- | pkg/commands/models/status_line_node.go | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/pkg/commands/models/status_line_node.go b/pkg/commands/models/status_line_node.go index ce85cfec8..3962e0c42 100644 --- a/pkg/commands/models/status_line_node.go +++ b/pkg/commands/models/status_line_node.go @@ -13,24 +13,6 @@ type StatusLineNode struct { Collapsed bool } -func (s *StatusLineNode) GetShortStatus() string { - // need to see if any child has unstaged changes. - if s.IsLeaf() { - return s.File.ShortStatus - } - - firstChar := " " - secondChar := " " - if s.GetHasStagedChanges() { - firstChar = "M" - } - if s.GetHasUnstagedChanges() { - secondChar = "M" - } - - return firstChar + secondChar -} - func (s *StatusLineNode) GetHasUnstagedChanges() bool { if s.IsLeaf() { return s.File.HasUnstagedChanges |