mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-01-10 04:07:18 +02:00
refactor
This commit is contained in:
parent
e52cec9cdf
commit
e7af3bf55d
@ -12,6 +12,11 @@ import (
|
|||||||
const EXPANDED_ARROW = "▼"
|
const EXPANDED_ARROW = "▼"
|
||||||
const COLLAPSED_ARROW = "►"
|
const COLLAPSED_ARROW = "►"
|
||||||
|
|
||||||
|
const INNER_ITEM = "├─ "
|
||||||
|
const LAST_ITEM = "└─ "
|
||||||
|
const NESTED = "│ "
|
||||||
|
const NOTHING = " "
|
||||||
|
|
||||||
type FileChangeManager struct {
|
type FileChangeManager struct {
|
||||||
Files []*models.File
|
Files []*models.File
|
||||||
Tree *models.FileChangeNode
|
Tree *models.FileChangeNode
|
||||||
@ -73,11 +78,6 @@ func (m *FileChangeManager) Render(diffName string, submoduleConfigs []*models.S
|
|||||||
return m.renderAux(m.Tree, "", -1, diffName, submoduleConfigs)
|
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 {
|
func (m *FileChangeManager) IsCollapsed(s *models.FileChangeNode) bool {
|
||||||
return m.CollapsedPaths[s.GetPath()]
|
return m.CollapsedPaths[s.GetPath()]
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user