summaryrefslogtreecommitdiff
path: root/reset.go
diff options
context:
space:
mode:
authorCarlos Martín Nieto <[email protected]>2015-08-04 14:47:10 +0200
committerCarlos Martín Nieto <[email protected]>2015-08-04 14:47:10 +0200
commitb7159b0cd4b25ee3b1a8eb9e0d4991d297487a36 (patch)
tree0228b23ba724935ed417f4d3bf151fe4e28e2ae2 /reset.go
parent5d989f2caddad21d0296cd9a6a83cabce88858d5 (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 'reset.go')
-rw-r--r--reset.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/reset.go b/reset.go
index b5b7435..9da7625 100644
--- a/reset.go
+++ b/reset.go
@@ -17,7 +17,7 @@ const (
func (r *Repository) ResetToCommit(commit *Commit, resetType ResetType, opts *CheckoutOpts) error {
runtime.LockOSThread()
defer runtime.UnlockOSThread()
- ret := C.git_reset(r.ptr, commit.gitObject.ptr, C.git_reset_t(resetType), opts.toC())
+ ret := C.git_reset(r.ptr, commit.ptr, C.git_reset_t(resetType), opts.toC())
if ret < 0 {
return MakeGitError(ret)