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

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

// Refs returns the configured ref store.
//
// Use Refs when starting from branch names, tags, HEAD, or other references.
// A common pattern is to resolve a reference first and then pass the resulting
// object ID to [Repository.Fetcher] or [Repository.Objects].
//
// Labels: Life-Parent, Close-No.
//
//nolint:ireturn
func (repo *Repository) Refs() refstore.ReadWriteStore {
	return repo.refs
}