1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-03-05 15:15:49 +02:00
This commit is contained in:
Ryooooooga 2022-03-26 22:54:15 +09:00 committed by Jesse Duffield
parent 4835fc00b8
commit 09d24ebd1d

View File

@ -129,6 +129,7 @@ M file1
s := s
t.Run(s.name, func(t *testing.T) {
viewModel := filetree.NewCommitFileTreeViewModel(func() []*models.CommitFile { return s.files }, utils.NewDummyLog(), true)
viewModel.SetRef(&models.Commit{})
viewModel.SetTree()
for _, path := range s.collapsedPaths {
viewModel.ToggleCollapsed(path)