MCPcopy
hub / github.com/jesseduffield/lazygit / NewFileNode

Function NewFileNode

pkg/gui/filetree/file_node.go:15–21  ·  view source on GitHub ↗
(node *Node[models.File])

Source from the content-addressed store, hash-verified

13var _ models.IFile = &FileNode{}
14
15func NewFileNode(node *Node[models.File]) *FileNode {
16 if node == nil {
17 return nil
18 }
19
20 return &FileNode{Node: node}
21}
22
23// returns the underlying node, without any file-specific methods attached
24func (self *FileNode) Raw() *Node[models.File] {

Callers 5

RenderFileTreeFunction · 0.92
GetMethod · 0.85
GetAllItemsMethod · 0.85
TreeMethod · 0.85
GetRootMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected