aboutsummaryrefslogtreecommitdiff
path: root/refs.go
diff options
context:
space:
mode:
authorGravatar Runxi Yu2025-11-25 08:00:00 +0800
committerGravatar Runxi Yu2025-11-25 08:00:00 +0800
commita9bee89154d68715e173550f632fba563914df0a (patch)
treec0e67ae344713d86ff8aece975827f412923cd9b /refs.go
parentrefs: Merge NamedRef into Ref; add Short (diff)
signatureNo signature
refs: Clarify how annotated tags are not peeled
Diffstat (limited to 'refs.go')
-rw-r--r--refs.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/refs.go b/refs.go
index e3be0a2d..d1247f0e 100644
--- a/refs.go
+++ b/refs.go
@@ -305,7 +305,7 @@ func (repo *Repository) ResolveRef(path string) (Ref, error) {
// ResolveRefFully resolves a ref by recursively following
// symbolic references until it reaches a detached ref.
// Symbolic cycles are detected and reported.
-// Tags are not peeled automatically.
+// Annotated tags are not peeled.
func (repo *Repository) ResolveRefFully(path string) (Hash, error) {
seen := make(map[string]struct{})
return repo.resolveRefFully(path, seen)