()
| 106 | } |
| 107 | |
| 108 | func (self *CommitFileTree) SetTree() { |
| 109 | filesForDisplay := self.getFilesForDisplay() |
| 110 | guiConfig := self.common.UserConfig().Gui |
| 111 | showRootItem := guiConfig.ShowRootItemInFileTree |
| 112 | cmp := NodeSortComparator[models.CommitFile](guiConfig.FileTreeSortOrder, guiConfig.FileTreeSortCaseSensitive) |
| 113 | if self.showTree { |
| 114 | self.tree = BuildTreeFromCommitFiles(filesForDisplay, showRootItem, cmp) |
| 115 | } else { |
| 116 | self.tree = BuildFlatTreeFromCommitFiles(filesForDisplay, showRootItem, cmp) |
| 117 | } |
| 118 | } |
| 119 | |
| 120 | func (self *CommitFileTree) SetTextFilter(filter string, useFuzzySearch bool) { |
| 121 | self.textFilter = filter |
no test coverage detected