diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2021-03-21 15:17:09 +1100 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2021-03-30 21:57:00 +1100 |
commit | 5bb48b51a014a5d794a719c3879af88d45905210 (patch) | |
tree | 1d5f2f81f4e7493bf1d0aa08f55c5ebfc38f4965 /pkg | |
parent | d2e1b35eee39104c9281574ff9a4b7737f0637e2 (diff) |
rename
Diffstat (limited to 'pkg')
-rw-r--r-- | pkg/gui/file_change_manager.go | 4 | ||||
-rw-r--r-- | pkg/gui/status_tree.go | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/pkg/gui/file_change_manager.go b/pkg/gui/file_change_manager.go index 40f547666..1af1fb748 100644 --- a/pkg/gui/file_change_manager.go +++ b/pkg/gui/file_change_manager.go @@ -63,9 +63,9 @@ func (m *FileChangeManager) SetFiles(files []*models.File) { func (m *FileChangeManager) SetTree() { if m.ShowTree { - m.Tree = GetTreeFromStatusFiles(m.Files) + m.Tree = GetTreeFromFiles(m.Files) } else { - m.Tree = GetFlatTreeFromStatusFiles(m.Files) + m.Tree = GetFlatTreeFromFiles(m.Files) } } diff --git a/pkg/gui/status_tree.go b/pkg/gui/status_tree.go index abf301e03..3e201b7d4 100644 --- a/pkg/gui/status_tree.go +++ b/pkg/gui/status_tree.go @@ -9,7 +9,7 @@ import ( "github.com/jesseduffield/lazygit/pkg/commands/models" ) -func GetTreeFromStatusFiles(files []*models.File) *models.FileChangeNode { +func GetTreeFromFiles(files []*models.File) *models.FileChangeNode { root := &models.FileChangeNode{} var curr *models.FileChangeNode @@ -49,8 +49,8 @@ func GetTreeFromStatusFiles(files []*models.File) *models.FileChangeNode { return root } -func GetFlatTreeFromStatusFiles(files []*models.File) *models.FileChangeNode { - rootAux := GetTreeFromStatusFiles(files) +func GetFlatTreeFromFiles(files []*models.File) *models.FileChangeNode { + rootAux := GetTreeFromFiles(files) sortedFiles := rootAux.GetLeaves() // Move merge conflicts to top. This is the one way in which sorting |