| Age | Commit message (Collapse) | Author | |
|---|---|---|---|
| 2020-12-05 | Refactor all callbacks (#700) | lhchavez | |
| This change is a preparation for another change that makes all callback types return a Go error instead of an error code / an integer. That is going to make make things a lot more idiomatic. The reason this change is split is threefold: a) This change is mostly mechanical and should contain no semantic changes. b) This change is backwards-compatible (in the Go API compatibility sense of the word), and thus can be backported to all other releases. c) It makes the other change a bit smaller and more focused on just one thing. Concretely, this change makes all callbacks populate a Go error when they fail. If the callback is invoked from the same stack as the function to which it was passed (e.g. for `Tree.Walk`), it will preserve the error object directly into a struct that also holds the callback function. Otherwise if the callback is pased to one func and will be invoked when run from another one (e.g. for `Repository.InitRebase`), the error string is saved into the libgit2 thread-local storage and then re-created as a `GitError`. | |||
| 2020-02-23 | Add odb.NewOdbBackendLoose() | lhchavez | |
| This change adds support for odb.NewOdbBackendLoose(). This, together with the git.Packbuilder, can do what Mempack does with a lot less memory. | |||
| 2020-02-23 | Add support for indexers and alternate odb packfiles | lhchavez | |
| This allows for implementations of git servers written in Go. | |||
| 2019-12-10 | Adjust to libgit2 changes | Carlos Martín Nieto | |
| 2019-02-11 | Uprev vendored libgit2 to v0.28 | lhchavez | |
| New version is here! | |||
| 2019-01-05 | Use git_object_t instead of deprecated git_otype | Carlos Martín Nieto | |
| 2019-01-03 | Merge pull request #447 from walkenzoy/master | Carlos Martín Nieto | |
| git2go: small fixes to odb module | |||
| 2018-12-28 | Return io.EOF on OdbReadStream.Read() | lhchavez | |
| This change makes OdbReadStream.Read() comply with the usual io.Reader semantics. | |||
| 2018-07-03 | git2go: small fixes to odb module | Michel 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-22 | Adjust to the change in the git_odb_open_rstream signature | Carlos Martín Nieto | |
| 2017-07-08 | Third round of keep-alive aditions | Carlos Martín Nieto | |
| 2017-01-20 | Merge remote-tracking branch 'origin/next' | Carlos Martín Nieto | |
| 2016-09-30 | odb & refdb: make New*BackendFromC take unsafe.Pointer as argument allowing ↵ | Mark Karpeles | |
| argument to be set from different package | |||
| 2016-07-19 | odb: 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-16 | odb: don't copy buffer | Ian Lance Taylor | |
| 2016-02-16 | Merge remote-tracking branch 'upstream/master' | Ian Lance Taylor | |
| 2016-02-03 | Expose git_odb_read_header as Odb.ReadHeader. | Han-Wen Nienhuys | |
| This function is much faster for discovering sizes for a given OID. | |||
| 2016-01-07 | handles, merge, odb: changes for Go 1.6 pointer passing rules | Ian Lance Taylor | |
| See http://tip.golang.org/cmd/cgo/#hdr-Passing_pointers . | |||
| 2015-11-02 | odb: remove debug fmt.Printlns | Augie 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-08 | Update to libgit2 b6011e29 | Carlos Martín Nieto | |
| 2015-05-22 | odb: use HandleList for C function callbacks. | Patrick Steinhardt | |
| 2015-03-04 | go fmt | Mark Probst | |
| 2014-12-11 | Remove useless includes | Carlos Martín Nieto | |
| 2014-12-06 | Add the newer missing thread-locking instances | Carlos Martín Nieto | |
| 2014-12-06 | Add missing thread locking | Carlos Martín Nieto | |
| 2014-05-06 | Odb: use a callback instead of a channel for ForEach | Carlos 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-03 | update for upstream changes | Aidan Nulman | |
| 2014-04-03 | Merge branch 'master' into custom_odb | Aidan Nulman | |
| Conflicts: odb.go wrapper.c | |||
| 2014-04-03 | explicit returns | Aidan Nulman | |
| 2014-02-26 | Convert the rest of the errors | Carlos Martín Nieto | |
| 2014-02-26 | Added git error code to the error object. | Jesper Hansen | |
| 2014-02-24 | Merge branch 'master' into custom_odb | Aidan Nulman | |
| Conflicts: git.go reference.go repository.go submodule.go | |||
| 2014-01-29 | add OdbBackend.Free() and the C it wraps; go fmt odb.go | Aidan Nulman | |
| 2014-01-28 | Merge branch 'master' into custom_odb | Aidan Nulman | |
| 2014-01-26 | Remove unnecessary cast. | Claudiu-Vlad Ursache | |
| 2014-01-25 | Add Odb hash function. | Claudiu-Vlad Ursache | |
| 2013-12-20 | remove unnecessary comment | Aidan Nulman | |
| 2013-12-20 | Add OdbBackend constructor | Aidan Nulman | |
| 2013-12-19 | Rename constructor functions to New... | Aidan Nulman | |
| 2013-12-19 | Refactor InitRepositoryWCustomOdbBackend() into component functions | Aidan Nulman | |
| 2013-12-18 | Stop assuming ODB backend includes wrapping routine; wrap in git2go instead | Aidan Nulman | |
| 2013-12-18 | Lock the OS thread when acessing errors | Carlos 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-14 | Don't repeat the pkg-config line | Carlos 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-17 | Merge pull request #38 from libgit2/odb-stream | Vicent Martí | |
| Wrap the odb streams | |||
| 2013-09-11 | Object types are constants | Carlos Martín Nieto | |
| Define the object type values as constants | |||
| 2013-09-11 | Wrap the odb streams | Carlos 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-13 | Merge pull request #13 from libgit2/polymorphism-take-2 | Vicent Martí | |
| My take on polymorphism | |||
| 2013-05-21 | Implement git_odb_foreach | Axel Wagner | |
| 2013-04-16 | Take 2 on polymorphism | Vicent Marti | |
| 2013-03-06 | Properly wrap ODB objects | Vicent Marti | |
