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

Method Begin

storage/memory/storage.go:169–174  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

167}
168
169func (o *ObjectStorage) Begin() storer.Transaction {
170 return &TxObjectStorage{
171 Storage: o,
172 Objects: make(map[plumbing.Hash]plumbing.EncodedObject),
173 }
174}
175
176func (o *ObjectStorage) ForEachObjectHash(fun func(plumbing.Hash) error) error {
177 for h := range o.Objects {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected