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

Function newTreeRecord

sizes/graph.go:546–552  ·  view source on GitHub ↗
(oid git.OID)

Source from the content-addressed store, hash-verified

544}
545
546func newTreeRecord(oid git.OID) *treeRecord {
547 return &treeRecord{
548 oid: oid,
549 size: TreeSize{ExpandedTreeCount: 1},
550 pending: -1,
551 }
552}
553
554// Initialize `r` (which is empty) based on `tree`.
555func (r *treeRecord) initialize(g *Graph, oid git.OID, tree *git.Tree) error {

Callers 2

RequireTreeSizeMethod · 0.85
RegisterTreeMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected