ref: 94011e3762ca25b8ab3a9b9fe0d7a9e155381477
dir: /refstore/files/batch_begin.go/
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
}