shithub: furgit

ref: 94011e3762ca25b8ab3a9b9fe0d7a9e155381477
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
}