MCPcopy Create free account
hub / github.com/go-git/go-git / flattenObjectMap

Function flattenObjectMap

storage/memory/storage.go:161–167  ·  view source on GitHub ↗
(m map[plumbing.Hash]plumbing.EncodedObject)

Source from the content-addressed store, hash-verified

159}
160
161func flattenObjectMap(m map[plumbing.Hash]plumbing.EncodedObject) []plumbing.EncodedObject {
162 objects := make([]plumbing.EncodedObject, 0, len(m))
163 for _, obj := range m {
164 objects = append(objects, obj)
165 }
166 return objects
167}
168
169func (o *ObjectStorage) Begin() storer.Transaction {
170 return &TxObjectStorage{

Callers 1

IterEncodedObjectsMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected