Thanks to visit codestin.com Credit goes to libgit2.org
Open working tree as a repository
Open the working directory of the working tree as a normal repository that can then be worked on.
Output pointer containing opened repository
Working tree to open
0 or an error code