diff options
| author | David Calavera <[email protected]> | 2014-10-27 07:25:57 -0700 |
|---|---|---|
| committer | David Calavera <[email protected]> | 2014-10-27 07:25:57 -0700 |
| commit | 749d6149b31b17aab4ca58a2e48d73361547fc3e (patch) | |
| tree | efc5c075b9ac818918b388dc402875252a6202e0 /wrapper.c | |
| parent | f6fa1a38abf7be7d4546b736e6db1ae7229e972f (diff) | |
| parent | 99d10775d66ffceca36c1fb0b947d8209f5153f8 (diff) | |
Merge branch 'master' into ls_remote
* master:
Update libgit2 submodule.
Remove Config#Refresh
implemented Index.AddAll, Index.RemoveAll, Index.UpdateAll
Diffstat (limited to 'wrapper.c')
| -rw-r--r-- | wrapper.c | 15 |
1 files changed, 15 insertions, 0 deletions
@@ -104,4 +104,19 @@ int _go_git_blob_create_fromchunks(git_oid *id, 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); +} + +int _go_git_index_update_all(git_index *index, const git_strarray *pathspec, void *callback) { + git_index_matched_path_cb cb = callback ? (git_index_matched_path_cb) &indexMatchedPathCallback : NULL; + return git_index_update_all(index, pathspec, cb, callback); +} + +int _go_git_index_remove_all(git_index *index, const git_strarray *pathspec, void *callback) { + git_index_matched_path_cb cb = callback ? (git_index_matched_path_cb) &indexMatchedPathCallback : NULL; + return git_index_remove_all(index, pathspec, cb, callback); +} + /* EOF */ |
