summaryrefslogtreecommitdiff
path: root/wrapper.c
diff options
context:
space:
mode:
authorBen Navetta <[email protected]>2014-08-19 08:51:18 -0400
committerBen Navetta <[email protected]>2014-08-19 08:51:18 -0400
commit1cb654e4f2ae536f71773dbe0bd808874b832d9c (patch)
treeaa5f387735b6db75ed1b9ae8e52c3ba436fd4557 /wrapper.c
parentfe1e6b83edfa8456f6ed8eb83eaa6fe57771e875 (diff)
add git_status_foreach binding
Diffstat (limited to 'wrapper.c')
-rw-r--r--wrapper.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/wrapper.c b/wrapper.c
index 2fd8fb7..09dba46 100644
--- a/wrapper.c
+++ b/wrapper.c
@@ -45,7 +45,7 @@ void _go_git_refdb_backend_free(git_refdb_backend *backend)
int _go_git_diff_foreach(git_diff *diff, int eachFile, int eachHunk, int eachLine, void *payload)
{
- git_diff_file_cb fcb = NULL;
+ git_diff_file_cb fcb = NULL;
git_diff_hunk_cb hcb = NULL;
git_diff_line_cb lcb = NULL;
@@ -105,4 +105,9 @@ 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_status_foreach(git_repository *repo, void *data)
+{
+ return git_status_foreach(repo, (git_status_cb)fileStatusForeach, data);
+}
+
/* EOF */