summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Crosby <[email protected]>2013-06-07 19:08:10 -0400
committerMichael Crosby <[email protected]>2013-06-07 19:08:10 -0400
commit6513377da0bb18a227f7f795efbce47931705bb4 (patch)
treedda09d9a1009dc8ca683e83bf864f8abc219be17
parent4e0a28b064047513194a842e9c16d9beab545f41 (diff)
Add nil for optional parameters for pack_write
The git_packbuilder_write function now takes two optional arguments used for information callbacks. These are currently not needed in the Go wrapper.
-rw-r--r--packbuilder.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/packbuilder.go b/packbuilder.go
index 8cc03bd..3b4d5ef 100644
--- a/packbuilder.go
+++ b/packbuilder.go
@@ -11,9 +11,9 @@ extern int _go_git_packbuilder_foreach(git_packbuilder *pb, void *payload);
*/
import "C"
import (
+ "io"
"runtime"
"unsafe"
- "io"
)
type Packbuilder struct {
@@ -68,7 +68,7 @@ func (pb *Packbuilder) ObjectCount() uint32 {
func (pb *Packbuilder) WriteToFile(name string) error {
cname := C.CString(name)
defer C.free(unsafe.Pointer(cname))
- ret := C.git_packbuilder_write(pb.ptr, cname)
+ ret := C.git_packbuilder_write(pb.ptr, cname, nil, nil)
if ret != 0 {
return LastError()
}