aboutsummaryrefslogtreecommitdiff
path: root/repository/refs.go
blob: 5c085ef918fc4f7ce285b78c6daf1479155468f8 (about) (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
package repository

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

// Refs returns the configured ref store.
//
// The returned store is owned by Repository and borrows repository-managed
// resources. Callers must not close it directly, and it must not be used after
// Close.
//
//nolint:ireturn
func (repo *Repository) Refs() refstore.ReadWriteStore {
	return repo.refs
}