From 563a4dfb78aaa97febd0763e9f81a740af0dd666 Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Sat, 7 Mar 2026 19:37:20 +0800 Subject: refstore/files: Implement batching --- refstore/files/batch_begin.go | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 refstore/files/batch_begin.go (limited to 'refstore/files/batch_begin.go') diff --git a/refstore/files/batch_begin.go b/refstore/files/batch_begin.go new file mode 100644 index 00000000..d45af9d3 --- /dev/null +++ b/refstore/files/batch_begin.go @@ -0,0 +1,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 +} -- cgit v1.3.1-10-gc9f91