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.
This commit is contained in:
Michael Crosby 2013-06-07 19:08:10 -04:00
parent 4e0a28b064
commit 6513377da0
1 changed files with 2 additions and 2 deletions

View File

@ -11,9 +11,9 @@ extern int _go_git_packbuilder_foreach(git_packbuilder *pb, void *payload);
*/ */
import "C" import "C"
import ( import (
"io"
"runtime" "runtime"
"unsafe" "unsafe"
"io"
) )
type Packbuilder struct { type Packbuilder struct {
@ -68,7 +68,7 @@ func (pb *Packbuilder) ObjectCount() uint32 {
func (pb *Packbuilder) WriteToFile(name string) error { func (pb *Packbuilder) WriteToFile(name string) error {
cname := C.CString(name) cname := C.CString(name)
defer C.free(unsafe.Pointer(cname)) 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 { if ret != 0 {
return LastError() return LastError()
} }