Find and open a repository with extended controls.
Pointer to the repo which will be opened. This can actually be NULL if you only want to use the error code to see if a repo at this path could be opened.
Path to open as git repository. If the flags permit "searching", then this can be a path to a subdirectory inside the working directory of the repository.
A combination of the GIT_REPOSITORY_OPEN flags above.
A GIT_PATH_LIST_SEPARATOR delimited list of path prefixes at which the search for a containing repository should terminate.
0 on success, GIT_ENOTFOUND if no repository could be found, or -1 if there was a repository but open failed for some reason (such as repo corruption or system errors).