Add nil for optional arguments to git_packbuilder_write #31
Loading…
Reference in New Issue
No description provided.
Delete Branch "master"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The git_packbuilder_write function now takes
two optional arguments used for information
callbacks. These are currently not needed
in the Go wrapper.
Without this patch you cannot build git2go.
Better would be, to implement the optional arguments imho.
The extra arguments are for progress information when you have single-threaded C code, so you don't have to run the packing in a background thread. Luckily in go we don't need this and you can happily run
WriteFile
in a goroutine and query the progress when you need it.Yes, I didn't feel like these progress callbacks fit with the go implementation but I would be happy to implement the change if it is required.
Ah, no; the callback is for the indexing process. Which means we can't ignore it as we have no other way of accessing this.
So this is fine as a compile fix, but we should create a struct for indexer data and create a channel for it here.
hehe, I've made same patch :D
Thanks!