From ed09e04462ffbdd1ccf86340fad37e6aa4911449 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlos=20Mart=C3=ADn=20Nieto?= Date: Sun, 14 Dec 2014 16:18:09 +0100 Subject: Mention the init function in the README This fixes #2731. --- README.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/README.md b/README.md index ec74f23ea..2b3ee27d4 100644 --- a/README.md +++ b/README.md @@ -59,6 +59,19 @@ dependencies, it can make use of a few libraries to add to it: - LibSSH2 to enable the SSH transport - iconv (OSX) to handle the HFS+ path encoding peculiarities +Initialization +=============== + +The library needs to keep track of some global state. Call + + git_libgit2_init(); + +before calling any other libgit2 functions. You can call this function many times. A matching number of calls to + + git_libgit2_shutdown(); + +will free the resources. + Threading ========= -- cgit v1.2.1