aboutsummaryrefslogtreecommitdiff
path: root/refs.go
diff options
context:
space:
mode:
authorGravatar Runxi Yu2025-11-16 00:00:00 +0000
committerGravatar Runxi Yu2025-11-16 00:00:00 +0000
commit43c25d457becb64ed2f76fbe2935475056a1081a (patch)
treed2cda5f0912ee3cd733aeda626096bd64115eabb /refs.go
parentSeparate stored object types from types that the user is expected to construct. (diff)
signature
Documentation overhaul
Diffstat (limited to 'refs.go')
-rw-r--r--refs.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/refs.go b/refs.go
index ca1c61ad..b1824251 100644
--- a/refs.go
+++ b/refs.go
@@ -75,7 +75,8 @@ func (repo *Repository) resolvePackedRef(refname string) (Hash, error) {
return Hash{}, ErrInvalidObject
}
-// ResolveHEAD reads HEAD and returns the ref that HEAD points to.
+// ResolveHEAD reads HEAD and returns the fully qualified
+// ref name it points to.
func (repo *Repository) ResolveHEAD() (string, error) {
data, err := os.ReadFile(repo.repoPath("HEAD"))
if err != nil {