summaryrefslogtreecommitdiff
path: root/odb.go
AgeCommit message (Collapse)Author
2014-05-06Odb: use a callback instead of a channel for ForEachCarlos Martín Nieto
A channel provides no way to specify whether we stopped sending data because of an error or because there is no more data. Therefore, make Odb.ForEach() take a callback with which the user is free to do whatever they need, letting us return en error.
2014-04-03update for upstream changesAidan Nulman
2014-04-03Merge branch 'master' into custom_odbAidan Nulman
Conflicts: odb.go wrapper.c
2014-04-03explicit returnsAidan Nulman
2014-02-26Convert the rest of the errorsCarlos Martín Nieto
2014-02-26Added git error code to the error object.Jesper Hansen
2014-02-24Merge branch 'master' into custom_odbAidan Nulman
Conflicts: git.go reference.go repository.go submodule.go
2014-01-29add OdbBackend.Free() and the C it wraps; go fmt odb.goAidan Nulman
2014-01-28Merge branch 'master' into custom_odbAidan Nulman
2014-01-26Remove unnecessary cast.Claudiu-Vlad Ursache
2014-01-25Add Odb hash function.Claudiu-Vlad Ursache
2013-12-20remove unnecessary commentAidan Nulman
2013-12-20Add OdbBackend constructorAidan Nulman
2013-12-19Rename constructor functions to New...Aidan Nulman
2013-12-19Refactor InitRepositoryWCustomOdbBackend() into component functionsAidan Nulman
2013-12-18Stop assuming ODB backend includes wrapping routine; wrap in git2go insteadAidan Nulman
2013-12-18Lock the OS thread when acessing errorsCarlos Martín Nieto
The library stores error information in thread-local storage, which means we need to make sure that the Go runtime doesn't switch OS threads between the time we call a function and th time we attempt to retrieve the error information.
2013-11-14Don't repeat the pkg-config lineCarlos Martín Nieto
This is only needed once per package. Having it on every file makes the build system ask about it n times, which is silly.
2013-09-17Merge pull request #38 from libgit2/odb-streamVicent Martí
Wrap the odb streams
2013-09-11Object types are constantsCarlos Martín Nieto
Define the object type values as constants
2013-09-11Wrap the odb streamsCarlos Martín Nieto
The interface to these streams should be what you expect from Go, and both have Write and Close functions so they implement Reader/ReadCloser and Write/WriteCloser respectively.
2013-06-13Merge pull request #13 from libgit2/polymorphism-take-2Vicent Martí
My take on polymorphism
2013-05-21Implement git_odb_foreachAxel Wagner
2013-04-16Take 2 on polymorphismVicent Marti
2013-03-06Properly wrap ODB objectsVicent Marti
2013-03-06Free Git objects via finalizers or manuallyCarlos Martín Nieto
Provide a manual way of freeing objects, but set finalizers for them in case the user does not want to worry about memory management, which would be useful for commits or trees, which sare typically small. When the objects are freed manually, the finalizer is unset to avoid double-freeing, mimicking what the go runtime does.
2013-03-05Initial commitVicent Marti