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

Method finalizeTreeSize

sizes/graph.go:505–516  ·  view source on GitHub ↗
(
	oid git.OID, size TreeSize, objectSize counts.Count32, treeEntries counts.Count32,
)

Source from the content-addressed store, hash-verified

503}
504
505func (g *Graph) finalizeTreeSize(
506 oid git.OID, size TreeSize, objectSize counts.Count32, treeEntries counts.Count32,
507) {
508 g.treeLock.Lock()
509 g.treeSizes[oid] = size
510 delete(g.treeRecords, oid)
511 g.treeLock.Unlock()
512
513 g.historyLock.Lock()
514 g.historySize.recordTree(g, oid, size, objectSize, treeEntries)
515 g.historyLock.Unlock()
516}
517
518type treeRecord struct {
519 oid git.OID

Callers 1

maybeFinalizeMethod · 0.80

Calls 1

recordTreeMethod · 0.80

Tested by

no test coverage detected