shithub: furgit

Download patch

ref: 65addf11cbdfbffe9f55a3fbe3964cab9ca89440
parent: f04cb2e9aff390d952c9b38dafd6f57aa0371aac
author: Runxi Yu <me@runxiyu.org>
date: Fri Feb 20 23:08:24 EST 2026

refstore: Document that ref.Detached/Symbolic should be values, not
pointers.

--- a/refstore/refstore.go
+++ b/refstore/refstore.go
@@ -13,6 +13,9 @@
 // Store reads Git references.
 type Store interface {
 	// Resolve resolves a reference name to either a symbolic or detached ref.
+	//
+	// Implementations should return value forms (ref.Detached or ref.Symbolic),
+	// not pointer forms.
 	// If the reference does not exist, implementations should return
 	// ErrReferenceNotFound.
 	Resolve(name string) (ref.Ref, error)
--