shithub: furgit

ref: c8dd7d3b44c93a664dddc0c4619d336c6e13d2a8
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([]queuedUpdate, 0, 8),
	}, nil
}