MCPcopy
hub / github.com/github/git-sizer / Size

Method Size

git/tree.go:23–25  ·  view source on GitHub ↗

Size returns the size of the tree object.

()

Source from the content-addressed store, hash-verified

21
22// Size returns the size of the tree object.
23func (tree Tree) Size() counts.Count32 {
24 return counts.NewCount32(uint64(len(tree.data)))
25}
26
27// TreeEntry represents an entry in a Git tree object. Note that Name
28// shares memory with the tree data that were originally read; i.e.,

Callers 1

initializeMethod · 0.80

Calls 1

NewCount32Function · 0.92

Tested by

no test coverage detected