From 84b6bd8c22c8683479881a67db03dfdeeeb299ce Mon Sep 17 00:00:00 2001 From: "Santiago M. Mola" Date: Wed, 8 Feb 2017 10:30:56 +0100 Subject: doc: improve object.Tag godoc. --- plumbing/object/tag.go | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'plumbing') diff --git a/plumbing/object/tag.go b/plumbing/object/tag.go index 085e3f6..549e337 100644 --- a/plumbing/object/tag.go +++ b/plumbing/object/tag.go @@ -18,6 +18,8 @@ import ( // contains meta-information about the tag, including the tagger, tag date and // message. // +// Note that this is not used for lightweight tags. +// // https://git-scm.com/book/en/v2/Git-Internals-Git-References#Tags type Tag struct { // Hash of the tag. @@ -26,10 +28,12 @@ type Tag struct { Name string // Tagger is the one who created the tag. Tagger Signature - // Message is an arbitrary text message - Message string + // Message is an arbitrary text message. + Message string + // TargetType is the object type of the target. TargetType plumbing.ObjectType - Target plumbing.Hash + // Target is the hash of the target object. + Target plumbing.Hash s storer.EncodedObjectStorer } -- cgit