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

import "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
}