summaryrefslogtreecommitdiff
path: root/wrapper.c
diff options
context:
space:
mode:
authorCarlos Martín Nieto <[email protected]>2014-10-25 18:11:52 +0200
committerCarlos Martín Nieto <[email protected]>2014-10-25 18:11:52 +0200
commit99d10775d66ffceca36c1fb0b947d8209f5153f8 (patch)
tree26ed31d1201a303b5a2d004a64d9d2846b9ca25e /wrapper.c
parenta2fd47aad228914235b0eecf8984099aea7c1b38 (diff)
parent9d37f817648cac252194816751cd383ae3586883 (diff)
Merge pull request #125 from lucas-clemente/master
implemented Index.AddAll as git_index_add_all wrapper
Diffstat (limited to 'wrapper.c')
-rw-r--r--wrapper.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/wrapper.c b/wrapper.c
index 15e11ce..6e33fa2 100644
--- a/wrapper.c
+++ b/wrapper.c
@@ -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 */