diff options
| author | Jesse Ezell <[email protected]> | 2014-03-07 16:43:20 -0800 |
|---|---|---|
| committer | Jesse Ezell <[email protected]> | 2014-03-07 16:43:20 -0800 |
| commit | 5e163fa2e8281642dbb9dbf6229a9a20387130d2 (patch) | |
| tree | 4cb1db57f29394349ee1ed6c4c5775dd9a17cbdf /wrapper.c | |
| parent | f5f8e13744f40300864956fdceb3849c724b9bbb (diff) | |
add blob chunk creation, creation of tree builders for specific trees, minor API cleanup
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 */ |
