Skip to content
This repository was archived by the owner on Sep 11, 2020. It is now read-only.

Commit 84b6bd8

Browse files
committed
doc: improve object.Tag godoc.
1 parent f3554ac commit 84b6bd8

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

plumbing/object/tag.go

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ import (
1818
// contains meta-information about the tag, including the tagger, tag date and
1919
// message.
2020
//
21+
// Note that this is not used for lightweight tags.
22+
//
2123
// https://git-scm.com/book/en/v2/Git-Internals-Git-References#Tags
2224
type Tag struct {
2325
// Hash of the tag.
@@ -26,10 +28,12 @@ type Tag struct {
2628
Name string
2729
// Tagger is the one who created the tag.
2830
Tagger Signature
29-
// Message is an arbitrary text message
30-
Message string
31+
// Message is an arbitrary text message.
32+
Message string
33+
// TargetType is the object type of the target.
3134
TargetType plumbing.ObjectType
32-
Target plumbing.Hash
35+
// Target is the hash of the target object.
36+
Target plumbing.Hash
3337

3438
s storer.EncodedObjectStorer
3539
}

0 commit comments

Comments
 (0)