MCPcopy Index your code
hub / github.com/jesseduffield/lazygit / SplitFileTreePath

Function SplitFileTreePath

pkg/gui/filetree/build_tree.go:180–182  ·  view source on GitHub ↗
(path string, showRootItem bool)

Source from the content-addressed store, hash-verified

178}
179
180func SplitFileTreePath(path string, showRootItem bool) []string {
181 return split(InternalTreePathForFilePath(path, showRootItem))
182}
183
184func InternalTreePathForFilePath(path string, showRootItem bool) string {
185 if showRootItem {

Callers 3

fileNameAtDepthFunction · 0.92
BuildTreeFromFilesFunction · 0.85
BuildTreeFromCommitFilesFunction · 0.85

Calls 2

splitFunction · 0.70

Tested by

no test coverage detected