shithub: furgit

ref: d314d1f7e933ca83081eec289aa0cb6e75a7eeac
dir: /refstore/files/batch_begin.go/

View raw version
package files

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

// BeginBatch creates one new files batch.
//
//nolint:ireturn
func (store *Store) BeginBatch() (refstore.Batch, error) {
	return &Batch{
		store: store,
		ops:   make([]txOp, 0, 8),
	}, nil
}