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

Method IterReferences

storage/memory/storage.go:280–287  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

278}
279
280func (r ReferenceStorage) IterReferences() (storer.ReferenceIter, error) {
281 var refs []*plumbing.Reference
282 for _, ref := range r {
283 refs = append(refs, ref)
284 }
285
286 return storer.NewReferenceSliceIter(refs), nil
287}
288
289func (r ReferenceStorage) CountLooseRefs() (int, error) {
290 return len(r), nil

Callers

nothing calls this directly

Calls 1

NewReferenceSliceIterFunction · 0.92

Tested by

no test coverage detected