1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-01-10 04:07:18 +02:00
This commit is contained in:
Jesse Duffield 2021-03-21 15:25:54 +11:00
parent e52cec9cdf
commit e7af3bf55d

View File

@ -12,6 +12,11 @@ import (
const EXPANDED_ARROW = "▼"
const COLLAPSED_ARROW = "►"
const INNER_ITEM = "├─ "
const LAST_ITEM = "└─ "
const NESTED = "│ "
const NOTHING = " "
type FileChangeManager struct {
Files []*models.File
Tree *models.FileChangeNode
@ -73,11 +78,6 @@ func (m *FileChangeManager) Render(diffName string, submoduleConfigs []*models.S
return m.renderAux(m.Tree, "", -1, diffName, submoduleConfigs)
}
const INNER_ITEM = "├─ "
const LAST_ITEM = "└─ "
const NESTED = "│ "
const NOTHING = " "
func (m *FileChangeManager) IsCollapsed(s *models.FileChangeNode) bool {
return m.CollapsedPaths[s.GetPath()]
}