summaryrefslogtreecommitdiff
path: root/tag.go
diff options
context:
space:
mode:
Diffstat (limited to 'tag.go')
-rw-r--r--tag.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/tag.go b/tag.go
index a58b090..9e26174 100644
--- a/tag.go
+++ b/tag.go
@@ -17,6 +17,10 @@ type Tag struct {
cast_ptr *C.git_tag
}
+func (t *Tag) AsObject() *Object {
+ return &t.Object
+}
+
func (t Tag) Message() string {
ret := C.GoString(C.git_tag_message(t.cast_ptr))
runtime.KeepAlive(t)