diff options
| author | lhchavez <[email protected]> | 2020-02-23 14:49:04 +0000 |
|---|---|---|
| committer | lhchavez <[email protected]> | 2020-02-23 14:49:04 +0000 |
| commit | 627447092fa24035ed3cd4cf31932dbef6f5a57f (patch) | |
| tree | 48a9122be45522cf1ec72535cec18fd701db55d2 /tag.go | |
| parent | 03339f731aba66baacab3fd67e7b2d185cdacb33 (diff) | |
| parent | 06764f48dce903bf95701c6ef75ad0fe46c0dedf (diff) | |
Merge remote-tracking branch 'upstream/master' into more-annotated-commit
Diffstat (limited to 'tag.go')
| -rw-r--r-- | tag.go | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -21,26 +21,26 @@ func (t *Tag) AsObject() *Object { return &t.Object } -func (t Tag) Message() string { +func (t *Tag) Message() string { ret := C.GoString(C.git_tag_message(t.cast_ptr)) runtime.KeepAlive(t) return ret } -func (t Tag) Name() string { +func (t *Tag) Name() string { ret := C.GoString(C.git_tag_name(t.cast_ptr)) runtime.KeepAlive(t) return ret } -func (t Tag) Tagger() *Signature { +func (t *Tag) Tagger() *Signature { cast_ptr := C.git_tag_tagger(t.cast_ptr) ret := newSignatureFromC(cast_ptr) runtime.KeepAlive(t) return ret } -func (t Tag) Target() *Object { +func (t *Tag) Target() *Object { var ptr *C.git_object ret := C.git_tag_target(&ptr, t.cast_ptr) runtime.KeepAlive(t) @@ -51,13 +51,13 @@ func (t Tag) Target() *Object { return allocObject(ptr, t.repo) } -func (t Tag) TargetId() *Oid { +func (t *Tag) TargetId() *Oid { ret := newOidFromC(C.git_tag_target_id(t.cast_ptr)) runtime.KeepAlive(t) return ret } -func (t Tag) TargetType() ObjectType { +func (t *Tag) TargetType() ObjectType { ret := ObjectType(C.git_tag_target_type(t.cast_ptr)) runtime.KeepAlive(t) return ret |
