shithub: furgit

ref: fb9eb058f1c9b7cb26f33bbe679a85f530566641
dir: /repository/refs.go/

View raw version
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
}