diff options
-rw-r--r-- | git-access.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/git-access.c b/git-access.c index 8433f7071..94f12c5ea 100644 --- a/git-access.c +++ b/git-access.c @@ -30,6 +30,13 @@ #define git_remote_fetch(remote, refspecs, signature, reflog) git_remote_fetch(remote, signature, reflog) #endif #endif + +#if !USE_LIBGIT23_API && !LIBGIT2_VER_MAJOR && LIBGIT2_VER_MINOR == 22 + #define git_remote_push(remote,refspecs,opts) git_remote_push(remote,refspecs,opts,NULL,NULL) + #define git_reference_set_target(out,ref,id,log_message) git_reference_set_target(out,ref,id,NULL,log_message) + #define git_reset(repo,target,reset_type,checkout_opts) git_reset(repo,target,reset_type,checkout_opts,NULL,NULL) +#endif + /* * api break introduced in libgit2 master after 0.22 - let's guess this is the v0.23 API */ |