ref: 1734207266752b9464f42c31f7728a7e3c692c50
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([]txOp, 0, 8),
}, nil
}