diff options
| author | Jesse Ezell <[email protected]> | 2014-03-11 12:29:40 -0700 |
|---|---|---|
| committer | Jesse Ezell <[email protected]> | 2014-03-11 12:29:40 -0700 |
| commit | f1e889928a5804a55712266d09acafd1371aceb3 (patch) | |
| tree | cf30f8ce9fcaec51c3d71ae911a6a8cdaf288d34 /wrapper.c | |
| parent | e5946d4009cf58f7a041f647e953a454159e2d4f (diff) | |
| parent | 1cf81178141c504c62bb3faaa406db665dc5471a (diff) | |
merge with latest, replace merge wrappers with go code
Diffstat (limited to 'wrapper.c')
| -rw-r--r-- | wrapper.c | 15 |
1 files changed, 7 insertions, 8 deletions
@@ -25,18 +25,17 @@ int _go_git_odb_foreach(git_odb *db, void *payload) return git_odb_foreach(db, (git_odb_foreach_cb)&odbForEachCb, payload); } -git_merge_head** _go_git_make_merge_head_array(size_t len) +int _go_blob_chunk_cb(char *buffer, size_t maxLen, void *payload) { - return (git_merge_head**)malloc(sizeof(git_merge_head*) * len); + return blobChunkCb(buffer, maxLen, payload); } -void _go_git_merge_head_array_set(git_merge_head** array, git_merge_head* ptr, size_t n) +int _go_git_blob_create_fromchunks(git_oid *id, + git_repository *repo, + const char *hintpath, + void *payload) { - array[n] = ptr; + return git_blob_create_fromchunks(id, repo, hintpath, _go_blob_chunk_cb, payload); } -git_merge_head* _go_git_merge_head_array_get(git_merge_head** array, size_t n) -{ - return array[n]; -} /* EOF */ |
