From 63116ea57e6920b25d7410eda2fc1c786be8a819 Mon Sep 17 00:00:00 2001 From: Carlos Martín Nieto Date: Sat, 13 Dec 2014 00:25:11 +0100 Subject: Update to master This deprecates the Push struct in favour of Remote.Push() --- push.go | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'push.go') diff --git a/push.go b/push.go index e6fe51f..ff96b08 100644 --- a/push.go +++ b/push.go @@ -31,6 +31,7 @@ func (p *Push) Free() { C.git_push_free(p.ptr) } +// This class is deprecated. Please use Remote.Push() instead func (remote *Remote) NewPush() (*Push, error) { runtime.LockOSThread() @@ -56,16 +57,6 @@ func (p *Push) Finish() error { return nil } -func (p *Push) UnpackOk() bool { - - ret := C.git_push_unpack_ok(p.ptr) - if ret == 0 { - return false - } - return true - -} - func (p *Push) UpdateTips(sig *Signature, msg string) error { var csig *C.git_signature = nil -- cgit v1.2.3