shithub: furgit

ref: cf02f2958c191bea02126faf8daf72a7aae76bd9
dir: /refstore/files/transaction_begin.go/

View raw version
package files

import "codeberg.org/lindenii/furgit/refstore"

// BeginTransaction creates one new files transaction.
//
//nolint:ireturn
func (store *Store) BeginTransaction() (refstore.Transaction, error) {
	return &Transaction{
		store: store,
		ops:   make([]txOp, 0, 8),
	}, nil
}