(oid git.OID)
| 471 | } |
| 472 | |
| 473 | func (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`. |
| 485 | func (g *Graph) RegisterTree(oid git.OID, tree *git.Tree) error { |