summaryrefslogtreecommitdiff
path: root/push.go
diff options
context:
space:
mode:
authorCarlos Martín Nieto <[email protected]>2014-12-13 00:25:11 +0100
committerCarlos Martín Nieto <[email protected]>2014-12-13 00:25:11 +0100
commit63116ea57e6920b25d7410eda2fc1c786be8a819 (patch)
treee04fa2c9fd211ea6d662a7da2beef65279f967d5 /push.go
parenta9d993f3d1400970bfba572747edbee1b57fd221 (diff)
Update to master
This deprecates the Push struct in favour of Remote.Push()
Diffstat (limited to 'push.go')
-rw-r--r--push.go11
1 files changed, 1 insertions, 10 deletions
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