aboutsummaryrefslogtreecommitdiff
path: root/ref/ref.go
diff options
context:
space:
mode:
authorGravatar Runxi Yu2026-02-21 11:37:45 +0800
committerGravatar Runxi Yu2026-02-21 11:37:45 +0800
commit779b4f100d2a02b3d135aad24b9ad4ec9f80e60d (patch)
treef7512e6808c59973eb90eecd36ef2e8222d8883f /ref/ref.go
parentrefstore: Add ref shortening (diff)
signatureNo signature
ref: Note that the Peeled field is optional
Diffstat (limited to 'ref/ref.go')
-rw-r--r--ref/ref.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/ref/ref.go b/ref/ref.go
index 9d1fbfc2..28b90ae6 100644
--- a/ref/ref.go
+++ b/ref/ref.go
@@ -17,6 +17,9 @@ type Detached struct {
ID objectid.ObjectID
// Peeled is the peeled target when available (for annotated tags).
+ //
+ // This field is optional backend-provided metadata. Backends that do not
+ // have peel metadata available may leave it nil.
Peeled *objectid.ObjectID
}