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