MCPcopy
hub / github.com/go-git/go-git / Children

Method Children

utils/merkletrie/noder/noder.go:47–47  ·  view source on GitHub ↗

Children returns the children of the element. Note that empty directory-like noders and file-like noders will both return NoChildren.

()

Source from the content-addressed store, hash-verified

45 // directory-like noders and file-like noders will both return
46 // NoChildren.
47 Children() ([]Noder, error)
48 // NumChildren returns the number of children this element has.
49 //
50 // This method is an optimization: the number of children is easily

Callers 8

preloadStatusFunction · 0.95
assertChildrenFunction · 0.65
NewFunction · 0.65
ChildrenMethod · 0.65
TestSocketMethod · 0.65
TestRacyGitMethod · 0.65
TestZeroIndexModTimeMethod · 0.65

Implementers 6

fileutils/merkletrie/internal/fsnoder/file
dirutils/merkletrie/internal/fsnoder/dir.
nodeutils/merkletrie/index/node.go
noderMockutils/merkletrie/noder/noder_test.go
nodeutils/merkletrie/filesystem/node.go
treeNoderplumbing/object/treenoder.go

Calls

no outgoing calls

Tested by 5

assertChildrenFunction · 0.52
TestSocketMethod · 0.52
TestRacyGitMethod · 0.52
TestZeroIndexModTimeMethod · 0.52