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

Method GetCommitSize

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

Source from the content-addressed store, hash-verified

638}
639
640func (g *Graph) GetCommitSize(oid git.OID) CommitSize {
641 g.commitLock.Lock()
642
643 size, ok := g.commitSizes[oid]
644 if !ok {
645 panic("commit is not available")
646 }
647 g.commitLock.Unlock()
648
649 return size
650}
651
652// Record that the specified `oid` is the specified `commit`.
653func (g *Graph) RegisterCommit(oid git.OID, commit *git.Commit) {

Callers 1

RegisterCommitMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected