| Age | Commit message (Collapse) | Author |
|
git2go: small fixes to odb module
|
|
This should prevent regressions in the future.
|
|
- 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()
|
|
This saves about 1s, or 1/3 of the test runtime. The linking is still
much slower, but this we can control.
|
|
This function is much faster for discovering sizes for a given OID.
|
|
|
|
|
|
Some test repositories are not correctly removed after the tests
did run. Fix by introducing a function that is to be used for
cleaning up temporary test repositories.
|
|
|
|
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.
|
|
This is the most common way of having an id that's not in Oid form, so
let's make it the "default" and rename to NewOidFromBytes() the one that
takes []byte.
|
|
|
|
|
|
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.
|