MCPcopy Index your code
hub / github.com/github/git-sizer / GetTreeSize

Method GetTreeSize

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

Source from the content-addressed store, hash-verified

471}
472
473func (g *Graph) GetTreeSize(oid git.OID) TreeSize {
474 g.treeLock.Lock()
475
476 size, ok := g.treeSizes[oid]
477 if !ok {
478 panic("tree size not available!")
479 }
480 g.treeLock.Unlock()
481 return size
482}
483
484// Record that the specified `oid` is the specified `tree`.
485func (g *Graph) RegisterTree(oid git.OID, tree *git.Tree) error {

Callers 1

RegisterCommitMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected