summaryrefslogtreecommitdiff
path: root/wrapper.c
diff options
context:
space:
mode:
authorMirko Nosenzo <[email protected]>2016-05-29 13:33:53 +0200
committerMirko Nosenzo <[email protected]>2016-05-29 13:44:18 +0200
commit278dc9ac4fe40b37c68ebc3013467255ab1f832f (patch)
treed594c7a6945a3b4cc63a3900c3af1a38c0ed753c /wrapper.c
parent8eaae73f85dd3df78df80d2dac066eb0866444ae (diff)
Checkout Callbacks
- Added CheckoutNotifyType mapping git_checkout_notify_t - Added CheckoutOpts.NotifyFlags of type CheckoutNotifyType - Added CheckoutNotifyCallback mapping git_checkout_notify_cb - Added CheckoutProgressCallback mapping git_checkout_progress_cb
Diffstat (limited to 'wrapper.c')
-rw-r--r--wrapper.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/wrapper.c b/wrapper.c
index a0688c0..f4b4ecc 100644
--- a/wrapper.c
+++ b/wrapper.c
@@ -10,6 +10,12 @@ void _go_git_populate_remote_cb(git_clone_options *opts)
opts->remote_cb = (git_remote_create_cb)remoteCreateCallback;
}
+void _go_git_populate_checkout_cb(git_checkout_options *opts)
+{
+ opts->notify_cb = (git_checkout_notify_cb)checkoutNotifyCallback;
+ opts->progress_cb = (git_checkout_progress_cb)checkoutProgressCallback;
+}
+
int _go_git_visit_submodule(git_repository *repo, void *fct)
{
return git_submodule_foreach(repo, (gogit_submodule_cbk)&SubmoduleVisitor, fct);