mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-09 18:22:16 +00:00
Merge pull request #2760 from libgit2/cmn/init-readme
Mention the init function in the README
This commit is contained in:
commit
25a03d4ad4
13
README.md
13
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
|
||||
=========
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user