shithub: furgit

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

View raw version
package files

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

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