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

Function InternalTreePathForFilePath

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

Source from the content-addressed store, hash-verified

182}
183
184func InternalTreePathForFilePath(path string, showRootItem bool) string {
185 if showRootItem {
186 return "./" + path
187 }
188
189 return path
190}

Callers 2

SelectPathMethod · 0.85
SplitFileTreePathFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected