aboutsummaryrefslogtreecommitdiff
path: root/refs.go
diff options
context:
space:
mode:
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 {