Skip to content

Commit b6752a7

Browse files
committed
add some APIs, Fix #10
1 parent dfbaa6a commit b6752a7

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/index.nobj.lua

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,18 @@ typedef git_index Index;
4747
method "add" {
4848
c_method_call "GitError" "git_index_add" { "IndexEntry *", "source_entry" }
4949
},
50+
method "add_all" {
51+
-- TODO: git_index_matched_path_cb
52+
c_method_call "GitError" "git_index_add_all" { "const StrArray *", "pathspec", "unsigned int", "flags", "void *", "callback", "void *", "payload" }
53+
},
5054
-- TODO: add_conflict?
5155
method "remove" {
5256
c_method_call "GitError" "git_index_remove" { "const char *", "path", "int", "stage" }
5357
},
58+
method "remove_all" {
59+
-- TODO: git_index_matched_path_cb
60+
c_method_call "GitError" "git_index_remove_all" { "const StrArray *", "pathspec", "void *", "callback", "void *", "payload" }
61+
},
5462
method "get_byindex" {
5563
c_method_call "const IndexEntry *" "git_index_get_byindex" { "size_t", "n" }
5664
},

0 commit comments

Comments
 (0)