diff options
| author | Edward Thomson <ethomson@edwardthomson.com> | 2018-02-08 22:51:46 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-02-08 22:51:46 +0000 |
| commit | 0fd0bfe435989b4947babfcd61b0bf573ff41e28 (patch) | |
| tree | 51c7d216d514f56c55dc46b7bd2e808a7dc84d2e /src/odb.c | |
| parent | d749822c58400be8212215fa0013cc8b76c7a1d3 (diff) | |
| parent | 09df354e03b6856ba713ee36a89186ea7b52a123 (diff) | |
| download | libgit2-0fd0bfe435989b4947babfcd61b0bf573ff41e28.tar.gz | |
Merge pull request #4450 from libgit2/ethomson/odb_loose_readstream
Streaming read support for the loose ODB backend
Diffstat (limited to 'src/odb.c')
| -rw-r--r-- | src/odb.c | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -1396,7 +1396,12 @@ void git_odb_stream_free(git_odb_stream *stream) stream->free(stream); } -int git_odb_open_rstream(git_odb_stream **stream, git_odb *db, const git_oid *oid) +int git_odb_open_rstream( + git_odb_stream **stream, + size_t *len, + git_otype *type, + git_odb *db, + const git_oid *oid) { size_t i, reads = 0; int error = GIT_ERROR; @@ -1409,7 +1414,7 @@ int git_odb_open_rstream(git_odb_stream **stream, git_odb *db, const git_oid *oi if (b->readstream != NULL) { ++reads; - error = b->readstream(stream, b, oid); + error = b->readstream(stream, len, type, b, oid); } } |
