libgit2/libgit2 — pull request #849 by scunz (2012-08-01 21:47:45+00:00)
Title: Add function to query for compile time settings.

This patch adds a `git_libgit2_capabilities()` function to query what settings were used to compile libgit2.

Currently there are 2 capabilities:
- `GIT_CAP_HTTPS` => Tells, if open ssl was found at compile time. This can't currently be figured out at run time (`git_remote_supported_url` will say "yes", only when trying to connect, a `git_transport` is created which *then* fails with an error).
- `GIT_CAP_THREADS` => Tells about the `THREADSAFE` build time option; though doesn't matter (yet) as the only really threadsafe thing we have seems to be the odb cache - but #469 explicitly ask for this.