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

Method Rollback

storage/memory/storage.go:241–244  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

239}
240
241func (tx *TxObjectStorage) Rollback() error {
242 tx.Objects = make(map[plumbing.Hash]plumbing.EncodedObject)
243 return nil
244}
245
246type ReferenceStorage map[plumbing.ReferenceName]*plumbing.Reference
247

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected