diff options
| author | Carlos Martín Nieto <[email protected]> | 2014-03-11 03:44:12 +0100 |
|---|---|---|
| committer | Carlos Martín Nieto <[email protected]> | 2014-03-11 03:44:12 +0100 |
| commit | 1cf81178141c504c62bb3faaa406db665dc5471a (patch) | |
| tree | c6d7b520b5788cedf7e6f84b59c629ecfdf51f5d /wrapper.c | |
| parent | ea909d8518af303a1d88efd46806fb5b941cc2d8 (diff) | |
| parent | 5e163fa2e8281642dbb9dbf6229a9a20387130d2 (diff) | |
Merge pull request #65 from jezell/blob_and_tree_updates
Minor API enhancements
Diffstat (limited to 'wrapper.c')
| -rw-r--r-- | wrapper.c | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -24,4 +24,17 @@ int _go_git_odb_foreach(git_odb *db, void *payload) { return git_odb_foreach(db, (git_odb_foreach_cb)&odbForEachCb, payload); } + +int _go_blob_chunk_cb(char *buffer, size_t maxLen, void *payload) +{ + return blobChunkCb(buffer, maxLen, payload); +} + +int _go_git_blob_create_fromchunks(git_oid *id, + git_repository *repo, + const char *hintpath, + void *payload) +{ + return git_blob_create_fromchunks(id, repo, hintpath, _go_blob_chunk_cb, payload); +} /* EOF */ |
