git_libgit2_features

Query compile time options for libgit2.

extern (C) nothrow @nogc
int
git_libgit2_features
()

Return Value

Type: int

A combination of GIT_FEATURE_* values.

- git_feature_t.GIT_FEATURE_THREADS Libgit2 was compiled with thread support. Note that thread support is still to be seen as a 'work in progress' - basic object lookups are believed to be threadsafe, but other operations may not be.

- git_feature_t.GIT_FEATURE_HTTPS Libgit2 supports the https:// protocol. This requires the openssl library to be found when compiling libgit2.

- git_feature_t.GIT_FEATURE_SSH Libgit2 supports the SSH protocol for network operations. This requires the libssh2 library to be found when compiling libgit2

Meta