diff options
| author | Carlos MartÃn Nieto <[email protected]> | 2017-07-09 20:10:07 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2017-07-09 20:10:07 +0200 |
| commit | 7969aefd42abf3d3d93397760e54c872493e0972 (patch) | |
| tree | 478e6de1af1cdc7aff71a954423ef5062adcf3fd /commit.go | |
| parent | 2cff3f2ef4828c755a545e5abacd3d7b2da3fc6d (diff) | |
| parent | 916d555644a241a55e1779d379618ab89108e850 (diff) | |
Merge pull request #397 from libgit2/cmn/tag-generic
Tag any kind of object
Diffstat (limited to 'commit.go')
| -rw-r--r-- | commit.go | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -18,6 +18,10 @@ type Commit struct { cast_ptr *C.git_commit } +func (c *Commit) AsObject() *Object { + return &c.Object +} + func (c *Commit) Message() string { ret := C.GoString(C.git_commit_message(c.cast_ptr)) runtime.KeepAlive(c) |
