summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2013-06-17Packbuilder: compilation fixesCarlos Martín Nieto
Don't name the return values, as they conflict with the names we want inside and the types don't match what we want to have inside. We need them to be two-way channels in the function, and then pass unidirectional references to the different functions.
2013-06-13Merge pull request #13 from libgit2/polymorphism-take-2Vicent Martí
My take on polymorphism
2013-06-13Merge pull request #24 from carlosmn/packbuilder-abortVicent Martí
Allow aborting the pack writing operation
2013-06-13Merge pull request #25 from carlosmn/error-nilVicent Martí
Catch nil error instances
2013-06-13Merge pull request #26 from carlosmn/ref-iterVicent Martí
Implement a reference iterator
2013-06-13Merge pull request #31 from crosbymichael/masterVicent Martí
Add nil for optional arguments to git_packbuilder_write
2013-06-13Merge pull request #29 from Merovius/parentVicent Martí
Implement Parent()-functions for Commits
2013-06-13Merge pull request #28 from Merovius/shortenVicent Martí
Implement ShortenOids
2013-06-13Merge pull request #27 from Merovius/odb_foreachVicent Martí
Implement git_odb_foreach
2013-06-07Add nil for optional parameters for pack_writeMichael Crosby
The git_packbuilder_write function now takes two optional arguments used for information callbacks. These are currently not needed in the Go wrapper.
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-23Implement a reference iteratorCarlos Martín Nieto
Wrap the reference iterators, and provide a Iter() function to get them through a channel.
2013-05-22Support for index-entriesAxel Wagner
2013-05-21Implement Parent()-functions for CommitsAxel Wagner
2013-05-21Implement ShortenOidsAxel Wagner
2013-05-21Implement git_odb_foreachAxel Wagner
2013-05-21Catch nil error instancesCarlos Martín Nieto
Unfortunately libgit2 sometimes returns an error without setting an error message. Provide an alternative message instead of trying to dereference nil.
2013-05-16Merge pull request #23 from Merovius/discoverVicent Martí
Use cbool-helper in Discover()
2013-05-16Merge pull request #19 from Merovius/discoverVicent Martí
Implement git_repository_discover
2013-05-17Use cbool-helper in Discover()Axel Wagner
2013-05-16Merge pull request #18 from Merovius/objecttypeVicent Martí
Use ObjectType in TreeEntry
2013-05-16Merge pull request #21 from Merovius/packbuilderVicent Martí
Implement Packbuilder-Support
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
2013-05-14Implement git_repository_discoverAxel Wagner
2013-04-26Merge pull request #17 from Merovius/oidVicent Martí
Implement most of the oid_-functions as Methods
2013-04-26Use ObjectType in TreeEntryAxel Wagner
2013-04-26Implement most of the oid_-functions as MethodsAxel Wagner
2013-04-25Merge pull request #16 from Merovius/pointerrecvVicent Martí
Give gitObject.Free a pointer-receiver
2013-04-25Merge pull request #15 from Merovius/objtypeVicent Martí
Add String() Method to ObjectType
2013-04-25Merge pull request #14 from Merovius/isbareVicent Martí
Wrap git_repository_is_bare
2013-04-26Give gitObject.Free a pointer-receiverAxel Wagner
This is needed to get runtime.SetFinalizer to work, which expects a pointer-receiver. Without it the runtime will crash, when it tries to garbage-collect an object.
2013-04-26Add String() Method to ObjectTypeAxel Wagner
2013-04-26Wrap git_repository_is_bareAxel Wagner
2013-04-18Ok, now with shared base objectVicent Marti
2013-04-16Add @carlosmn's testsVicent Marti
2013-04-16Take 2 on polymorphismVicent Marti
2013-04-12Merge pull request #12 from Merovius/checkoutVicent Martí
Checkout
2013-03-19Implement SetWorkdirAxel Wagner
2013-03-19Implement rudimentary checkout operationsAxel Wagner
2013-03-08Merge pull request #10 from carlosmn/oid-idVicent Martí
TreeEntry: use Id instead of Oid
2013-03-08TreeEntry: use Id instead of OidCarlos Martín Nieto
Name it like The Library and the rest of the bindings.
2013-03-08Merge pull request #9 from carlosmn/nil-oidVicent Martí
Oid: make sure not to dereference a NULL git_oid
2013-03-08Oid: make sure not to dereference a NULL git_oidCarlos Martín Nieto
Some calls like Reference.Target() can return NULL if the reference is symbolic. Make sure newOidFromC() can handle these situations.
2013-03-07Merge pull request #8 from carlosmn/refsVicent Martí
Immutable refs
2013-03-07Delete the whole test dirCarlos Martín Nieto
2013-03-07Add a test for referencesCarlos Martín Nieto
2013-03-07Factor out creating the test repoCarlos Martín Nieto
2013-03-07Wrap immutable refsCarlos Martín Nieto