diff options
| author | 2026-03-22 23:10:37 +0000 | |
|---|---|---|
| committer | 2026-03-22 23:13:19 +0000 | |
| commit | ab6f8dde0cdc554084c4455c76feef0099db70d9 (patch) | |
| tree | 6c6a207d6094a8d99b1b1b43f8bdee93c19871e0 /refstore/chain/new.go | |
| parent | commitgraph: Tighten docs and use a value-ish Filter return (diff) | |
| signature | No signature | |
*: Fixup ownership of compositional backends v0.1.88
Diffstat (limited to 'refstore/chain/new.go')
| -rw-r--r-- | refstore/chain/new.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/refstore/chain/new.go b/refstore/chain/new.go index ebf5e2bb..f8bdcb13 100644 --- a/refstore/chain/new.go +++ b/refstore/chain/new.go @@ -3,6 +3,9 @@ package chain import "codeberg.org/lindenii/furgit/refstore" // New creates an ordered reference store chain. +// +// The provided backends must be non-nil and distinct. +// Chain borrows the provided backends and does not close them in Close. func New(backends ...refstore.ReadingStore) *Chain { return &Chain{ backends: append([]refstore.ReadingStore(nil), backends...), |
