diff options
| author | Jesse Ezell <[email protected]> | 2014-03-21 22:16:26 -0700 |
|---|---|---|
| committer | Jesse Ezell <[email protected]> | 2014-03-21 22:51:38 -0700 |
| commit | 155f641683f09ec1a9511f42867ae3f278a6800b (patch) | |
| tree | 75720dd634dd7b045a47c296bc401b292965e863 /wrapper.c | |
| parent | f85c38ce22391ef8a932673dabf82219527ab433 (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.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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); |
