summaryrefslogtreecommitdiff
path: root/odb.go
AgeCommit message (Collapse)Author
2019-01-03Merge pull request #447 from walkenzoy/masterCarlos Martín Nieto
git2go: small fixes to odb module
2018-12-28Return io.EOF on OdbReadStream.Read()lhchavez
This change makes OdbReadStream.Read() comply with the usual io.Reader semantics.
2018-07-03git2go: small fixes to odb moduleMichel Lespinasse
- Fix couple cgo issues in odb.Write() and odb.Hash(). This is the same issue - and same solution - as repo.CreateBlobFromBuffer() used to have. - Add test for odb.Read()
2018-02-22Adjust to the change in the git_odb_open_rstream signatureCarlos Martín Nieto
2017-07-08Third round of keep-alive aditionsCarlos Martín Nieto
2017-01-20Merge remote-tracking branch 'origin/next'Carlos Martín Nieto
2016-09-30odb & refdb: make New*BackendFromC take unsafe.Pointer as argument allowing ↵Mark Karpeles
argument to be set from different package
2016-07-19odb: Expose git_odb_object_type() as OdbObject.Type()Kirill Smelkov
It might be needed when one is writing `git cat-file --batch` equivalent which has output format <sha1> SP <type> SP <size> LF <contents> LF
2016-02-16odb: don't copy bufferIan Lance Taylor
2016-02-16Merge remote-tracking branch 'upstream/master'Ian Lance Taylor
2016-02-03Expose git_odb_read_header as Odb.ReadHeader.Han-Wen Nienhuys
This function is much faster for discovering sizes for a given OID.
2016-01-07handles, merge, odb: changes for Go 1.6 pointer passing rulesIan Lance Taylor
See http://tip.golang.org/cmd/cgo/#hdr-Passing_pointers .
2015-11-02odb: remove debug fmt.PrintlnsAugie Fackler
These appear to be left over debug statements, and they also look like they were intended to be fmt.Printf calls anyway.
2015-06-08Update to libgit2 b6011e29Carlos Martín Nieto
2015-05-22odb: use HandleList for C function callbacks.Patrick Steinhardt
2015-03-04go fmtMark Probst
2014-12-11Remove useless includesCarlos Martín Nieto
2014-12-06Add the newer missing thread-locking instancesCarlos Martín Nieto
2014-12-06Add missing thread lockingCarlos Martín Nieto
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