summaryrefslogtreecommitdiff
path: root/packbuilder.go
AgeCommit message (Collapse)Author
2013-05-23Allow aborting the pack writing operationCarlos Martín Nieto
In case of an error in the writer, the packbuilder will stay around waiting for someone to read from its channel. The state associated with a packbuilder is non-trivial and it will keep a reference to the object, so the GC won't be able to free it. Change the ForEach interface to also return a "stop" channel. Closing the channel or writing into it will cause the first receive clause to act, making the callback to return -1, aborting the operation and ending the goroutine, freeing its hold on the packbuilder.
2013-05-16Correct some errors from 1da989eAxel Wagner
2013-05-16Add Write(w io.Writer) to packbuilderAxel Wagner
This wraps (*packbuilder).ForEach(), making it possible to write the pack easiliy to a tcp-connection, a HTTP-Body or the like.
2013-05-16Add support for git_packbuilderAxel Wagner