diff options
| author | Carlos Martín Nieto <[email protected]> | 2015-08-04 14:47:10 +0200 |
|---|---|---|
| committer | Carlos Martín Nieto <[email protected]> | 2015-08-04 14:47:10 +0200 |
| commit | b7159b0cd4b25ee3b1a8eb9e0d4991d297487a36 (patch) | |
| tree | 0228b23ba724935ed417f4d3bf151fe4e28e2ae2 /describe.go | |
| parent | 5d989f2caddad21d0296cd9a6a83cabce88858d5 (diff) | |
Move from an Object interface to a type
An Object should be about representing a libgit2 object rather than
showing which methods it should support.
Change any return of Object to *Object and provide methods to convert
between this and the particular type.
Diffstat (limited to 'describe.go')
| -rw-r--r-- | describe.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/describe.go b/describe.go index c6f9a79..d75dbcb 100644 --- a/describe.go +++ b/describe.go @@ -127,7 +127,7 @@ func (c *Commit) Describe(opts *DescribeOptions) (*DescribeResult, error) { runtime.LockOSThread() defer runtime.UnlockOSThread() - ecode := C.git_describe_commit(&resultPtr, c.gitObject.ptr, cDescribeOpts) + ecode := C.git_describe_commit(&resultPtr, c.ptr, cDescribeOpts) if ecode < 0 { return nil, MakeGitError(ecode) } |
