Add Feature query support & panic if libgit2 is not thread-aware #354

Merged
carlosmn merged 2 commits from cmn/panic-threading into next 2016-10-31 18:16:27 -05:00

2 Commits

Author SHA1 Message Date
Carlos Martín Nieto a37f7f30ff Panic if libgit2 is not thread-aware
Go calling C is inherently multi-threaded. If libgit2 cannot handle
threading, then we're going to crash at some random point. Crash right
at the start so we know what's happening.
2016-10-31 21:14:08 +01:00
Carlos Martín Nieto adb1770ff3 Add Features() to retrieve the compile-time features of libgit2 2016-10-31 21:09:24 +01:00