diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2015-05-28 09:13:51 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-05-28 09:13:51 -0700 |
commit | 95664af53bc6faf352cf5b193fe9dfd42fa25e60 (patch) | |
tree | c582c994b4af482e91ffcaa5871282be81775910 /git-access.c | |
parent | 8af85fbc043c06acf23b3a9408f20d54f00aab1b (diff) | |
download | subsurface-95664af53bc6faf352cf5b193fe9dfd42fa25e60.tar.gz |
Add USE_LIBGIT23_API as cmake option
Just as we would expect, the libgit2 developers of course once again broke
their API. In order to compile against current master we need to remap
those APIs once again.
Simply call cmake with -DUSE_LIBGIT23_API
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'git-access.c')
-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 7e1a47ee1..2b318e323 100644 --- a/git-access.c +++ b/git-access.c @@ -26,6 +26,13 @@ #define git_remote_fetch(remote, refspecs, signature, reflog) git_remote_fetch(remote, signature, reflog) #endif #endif +/* + * api break introduced in libgit2 master after 0.22 - let's guess this is the v0.23 API + */ +#if USE_LIBGIT23_API + #define git_branch_create(out, repo, branch_name, target, force, signature, log_message) \ + git_branch_create(out, repo, branch_name, target, force) +#endif static char *get_local_dir(const char *remote, const char *branch) { |