diff options
| author | Carlos Martín Nieto <[email protected]> | 2016-04-21 16:34:51 +0200 |
|---|---|---|
| committer | Carlos Martín Nieto <[email protected]> | 2016-04-23 15:35:22 +0200 |
| commit | 9163ca7d5072114975bed794226dd90d37d856b4 (patch) | |
| tree | c71496b0bb41b83f45520129c1e1543b1f260677 /wrapper.c | |
| parent | 652a14f732bb3b96fc77baf53f78d74175ac2e0a (diff) | |
Update to 1dc4491
Diffstat (limited to 'wrapper.c')
| -rw-r--r-- | wrapper.c | 28 |
1 files changed, 15 insertions, 13 deletions
@@ -108,19 +108,6 @@ void _go_git_setup_callbacks(git_remote_callbacks *callbacks) { callbacks->push_update_reference = (push_update_reference_cb) pushUpdateReferenceCallback; } -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); -} - int _go_git_index_add_all(git_index *index, const git_strarray *pathspec, unsigned int flags, void *callback) { git_index_matched_path_cb cb = callback ? (git_index_matched_path_cb) &indexMatchedPathCallback : NULL; return git_index_add_all(index, pathspec, flags, cb, callback); @@ -172,4 +159,19 @@ int _go_git_stash_foreach(git_repository *repo, void *payload) { return git_stash_foreach(repo, (git_stash_cb)&stashForeachCb, payload); } +int _go_git_writestream_write(git_writestream *stream, const char *buffer, size_t len) +{ + return stream->write(stream, buffer, len); +} + +int _go_git_writestream_close(git_writestream *stream) +{ + return stream->close(stream); +} + +void _go_git_writestream_free(git_writestream *stream) +{ + stream->free(stream); +} + /* EOF */ |
