summaryrefslogtreecommitdiff
path: root/wrapper.c
diff options
context:
space:
mode:
authorJesse Ezell <[email protected]>2014-03-21 22:16:26 -0700
committerJesse Ezell <[email protected]>2014-03-21 22:51:38 -0700
commit155f641683f09ec1a9511f42867ae3f278a6800b (patch)
tree75720dd634dd7b045a47c296bc401b292965e863 /wrapper.c
parentf85c38ce22391ef8a932673dabf82219527ab433 (diff)
don't expose 3 different diff foreach methods. use structures instead of pointers to structures for diff detail. add patch error code handling. trim excess data from diff structures.
Diffstat (limited to 'wrapper.c')
-rw-r--r--wrapper.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/wrapper.c b/wrapper.c
index 5d68df5..a8b1432 100644
--- a/wrapper.c
+++ b/wrapper.c
@@ -45,6 +45,11 @@ int _go_git_diff_foreach(git_diff *diff, int eachFile, int eachHunk, int eachLin
return git_diff_foreach(diff, fcb, hcb, lcb, payload);
}
+
+void _go_git_setup_diff_notify_callbacks(git_diff_options *opts) {
+ opts->notify_cb = (git_diff_notify_cb)diffNotifyCb;
+}
+
void _go_git_setup_callbacks(git_remote_callbacks *callbacks) {
typedef int (*progress_cb)(const char *str, int len, void *data);
typedef int (*completion_cb)(git_remote_completion_type type, void *data);