diff options
author | Sascha Cunz <Sascha@BabbelBox.org> | 2012-08-01 22:02:32 +0400 |
---|---|---|
committer | Sascha Cunz <Sascha@BabbelBox.org> | 2012-08-01 22:02:32 +0400 |
commit | e564e4969c51b585921e1b29627ec2f849e3ff9b (patch) | |
tree | c366c6e93b96e2ab6915375d0ab49843475514a3 /src/util.c | |
parent | 2340b18102eedc73cbbfeca43f0b22e5d4119c38 (diff) |
Add function to query for compile time settings.
Diffstat (limited to 'src/util.c')
-rw-r--r-- | src/util.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/util.c b/src/util.c index 90bb3d02a..51bf843de 100644 --- a/src/util.c +++ b/src/util.c @@ -22,6 +22,18 @@ void git_libgit2_version(int *major, int *minor, int *rev) *rev = LIBGIT2_VER_REVISION; } +int git_libgit2_capabilities() +{ + return 0 +#ifdef GIT_THREADS + | GIT_CAP_THREADS +#endif +#ifdef GIT_SSL + | GIT_CAP_HTTPS +#endif + ; +} + void git_strarray_free(git_strarray *array) { size_t i; |