diff options
author | Carlos Martín Nieto <cmn@dwim.me> | 2015-04-19 00:55:00 +0200 |
---|---|---|
committer | Carlos Martín Nieto <cmn@dwim.me> | 2015-04-19 01:02:29 +0200 |
commit | efc2fec50e3bb725b2b244fdeacfb2dfad6ee78e (patch) | |
tree | 996e1ba559244e36596d98b7bb2fe4754ac94ee3 /tests/online | |
parent | 4c02d393748d0db382450871ad9ef6898a2ce360 (diff) | |
download | libgit2-efc2fec50e3bb725b2b244fdeacfb2dfad6ee78e.tar.gz |
push: report the update plan to the callercmn/negotiation-notify
It can be useful for the caller to know which update commands will be
sent to the server before the packfile is pushed up. git does this via
the pre-push hook.
We don't have hooks, but as it adds introspection into what is
happening, we can add a callback which performs the same function.
Diffstat (limited to 'tests/online')
-rw-r--r-- | tests/online/push_util.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/online/push_util.h b/tests/online/push_util.h index 2e05c4ed7..83d46b506 100644 --- a/tests/online/push_util.h +++ b/tests/online/push_util.h @@ -12,7 +12,7 @@ extern const git_oid OID_ZERO; * @param data pointer to a record_callbacks_data instance */ #define RECORD_CALLBACKS_INIT(data) \ - { GIT_REMOTE_CALLBACKS_VERSION, NULL, NULL, cred_acquire_cb, NULL, NULL, record_update_tips_cb, NULL, NULL, NULL, data } + { GIT_REMOTE_CALLBACKS_VERSION, NULL, NULL, cred_acquire_cb, NULL, NULL, record_update_tips_cb, NULL, NULL, NULL, NULL, data } typedef struct { char *name; |