ref: 1556cfb51d980ae8c5bf664ad69f3abd46f02386
dir: /refstore/files/transaction_begin.go/
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([]queuedUpdate, 0, 8),
}, nil
}