aboutsummaryrefslogtreecommitdiff
path: root/refstore/files/batch_begin.go
blob: d45af9d3c2e28abad4c99ba54876bc66c8896285 (about) (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
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
}