Get the location of a specific repository file or directory
This function will retrieve the path of a specific repository item. It will thereby honor things like the repository's common directory, gitdir, etc. In case a file path cannot exist for a given item (e.g. the working directory of a bare repository), GIT_ENOTFOUND is returned.
0, GIT_ENOTFOUND if the path cannot exist or an error code