shithub: furgit

ref: 2a5c12f0152240f54d01653b70b7605103393afd
dir: /ref/store/files/transaction_begin.go/

View raw version
package files

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

// 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
}