From 1cb654e4f2ae536f71773dbe0bd808874b832d9c Mon Sep 17 00:00:00 2001 From: Ben Navetta Date: Tue, 19 Aug 2014 08:51:18 -0400 Subject: add git_status_foreach binding --- wrapper.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'wrapper.c') 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 */ -- cgit v1.2.3